<commit_before>#
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   This file is part of the Smart Developer Hub Project:
#     http://www.smartdeveloperhub.org/
#
#   Center for Open Middleware
#     http://www.centeropenmiddleware.com/
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   Copyright (C) 2015 Center for Open Middleware.
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#             http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   Artifact    : org.smartdeveloperhub.vocabulary:sdh-vocabulary:0.2.0-SNAPSHOT
#   Bundle      : sdh-vocabulary-0.2.0-SNAPSHOT.jar
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#

##-- PREFIXES ----------------------------------------------------------------##

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:  <http://www.w3.org/2002/07/owl#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .

@prefix sdh:      <http://www.smartdeveloperhub.org/vocabulary/sdh#> .
@prefix platform: <http://www.smartdeveloperhub.org/vocabulary/platform#> .
@prefix ci:       <http://www.smartdeveloperhub.org/vocabulary/ci#> .
@prefix scm:      <http://www.smartdeveloperhub.org/vocabulary/scm#> .
@prefix org:      <http://www.smartdeveloperhub.org/vocabulary/organization#> .
@prefix metrics:  <http://www.smartdeveloperhub.org/vocabulary/metrics#> .
@prefix views:  <http://www.smartdeveloperhub.org/vocabulary/views#> .

@prefix oslc:        <http://open-services.net/ns/core#> .
@prefix oslc_auto:   <http://open-services.net/ns/auto#> .
@prefix oslc_asset:  <http://open-services.net/ns/asset#> .
@prefix oslc_config: <http://open-services.net/ns/config#> .

@prefix doap:    <http://usefulinc.com/ns/doap#> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> . 

# PROV ontology
@prefix prov: <http://www.w3.org/ns/prov#> .
# Dublin Core Metadata Element Set, Version 1.1
@prefix dc:   <http://purl.org/dc/elements/1.1/> .
# Web of Trust Ontology
@prefix wot:  <http://xmlns.com/wot/0.1/> . 
# SemWeb Vocab Status Ontology
@prefix vs:   <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
# Resource Directory Description Language (RDDL)
@prefix rddl: <http://www.rddl.org/> .

##-- MODULE DECLARATION ------------------------------------------------------##

@base <http://www.smartdeveloperhub.org/vocabulary/> .

<views> rdf:type owl:Ontology ;
  owl:versionIRI <v1/views> ;
  owl:imports 
    <v1/platform> .


##-- CLASSES -----------------------------------------------------------------##

views:ViewService a owl:Class ;
  rdfs:subClassOf platform:LinkedDataMicroService ;
  rdfs:subClassOf [
				    a owl:Restriction ;
				    owl:onProperty platform:vocabulary ;
				    owl:someValuesFrom views:ViewsVocabulary 
				  ] , [ 
				    a owl:Restriction ;
				    owl:onProperty platform:hasResourceType ;
				    owl:hasValue views:ViewsEndpoint
				  ] , [ 
				    a owl:Restriction ;
				    owl:onProperty platform:providesDomain ;
				    owl:hasValue views:ViewsDomain 
				  ] , [
				    a owl:Restriction ;
				    owl:onProperty views:producesView ;
				    owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
				    owl:onClass views:ViewDefinition 
				  ] , [
				    a owl:Restriction ;
				    owl:onProperty views:hasEndpoint ;
				    owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
				    owl:onClass views:ViewEndPoint 
				  ].  

views:ViewEndpoint a owl:Class ;
  rdfs:subClassOf platform:Endpoint ;
  rdfs:subClassOf [<commit_msg>fixed constraint referring ViewsEndPoint when it must be ViewsEndpoint<commit_after>#
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   This file is part of the Smart Developer Hub Project:
#     http://www.smartdeveloperhub.org/
#
#   Center for Open Middleware
#     http://www.centeropenmiddleware.com/
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   Copyright (C) 2015 Center for Open Middleware.
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#             http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#   Artifact    : org.smartdeveloperhub.vocabulary:sdh-vocabulary:0.2.0-SNAPSHOT
#   Bundle      : sdh-vocabulary-0.2.0-SNAPSHOT.jar
# #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
#

##-- PREFIXES ----------------------------------------------------------------##

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:  <http://www.w3.org/2002/07/owl#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .

@prefix sdh:      <http://www.smartdeveloperhub.org/vocabulary/sdh#> .
@prefix platform: <http://www.smartdeveloperhub.org/vocabulary/platform#> .
@prefix ci:       <http://www.smartdeveloperhub.org/vocabulary/ci#> .
@prefix scm:      <http://www.smartdeveloperhub.org/vocabulary/scm#> .
@prefix org:      <http://www.smartdeveloperhub.org/vocabulary/organization#> .
@prefix metrics:  <http://www.smartdeveloperhub.org/vocabulary/metrics#> .
@prefix views:  <http://www.smartdeveloperhub.org/vocabulary/views#> .

@prefix oslc:        <http://open-services.net/ns/core#> .
@prefix oslc_auto:   <http://open-services.net/ns/auto#> .
@prefix oslc_asset:  <http://open-services.net/ns/asset#> .
@prefix oslc_config: <http://open-services.net/ns/config#> .

@prefix doap:    <http://usefulinc.com/ns/doap#> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> . 

# PROV ontology
@prefix prov: <http://www.w3.org/ns/prov#> .
# Dublin Core Metadata Element Set, Version 1.1
@prefix dc:   <http://purl.org/dc/elements/1.1/> .
# Web of Trust Ontology
@prefix wot:  <http://xmlns.com/wot/0.1/> . 
# SemWeb Vocab Status Ontology
@prefix vs:   <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
# Resource Directory Description Language (RDDL)
@prefix rddl: <http://www.rddl.org/> .

##-- MODULE DECLARATION ------------------------------------------------------##

@base <http://www.smartdeveloperhub.org/vocabulary/> .

<views> rdf:type owl:Ontology ;
  owl:versionIRI <v1/views> ;
  owl:imports 
    <v1/platform> .


##-- CLASSES -----------------------------------------------------------------##

views:ViewService a owl:Class ;
  rdfs:subClassOf platform:LinkedDataMicroService ;
  rdfs:subClassOf [
				    a owl:Restriction ;
				    owl:onProperty platform:vocabulary ;
				    owl:someValuesFrom views:ViewsVocabulary 
				  ] , [ 
				    a owl:Restriction ;
				    owl:onProperty platform:hasResourceType ;
				    owl:hasValue views:ViewsEndpoint
				  ] , [ 
				    a owl:Restriction ;
				    owl:onProperty platform:providesDomain ;
				    owl:hasValue views:ViewsDomain 
				  ] , [
				    a owl:Restriction ;
				    owl:onProperty views:producesView ;
				    owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
				    owl:onClass views:ViewDefinition 
				  ] , [
				    a owl:Restriction ;
				    owl:onProperty views:hasEndpoint ;
				    owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
				    owl:onClass views:ViewEndpoint 
				  ].  

views:ViewEndpoint a owl:Class ;
  rdfs:subClassOf platform:Endpoint ;
  rdfs:subClassOf [
{'fraction_non_alphanumeric': 0.25335042535834984, 'fraction_numerical': 0.014450530241230625, 'mean_word_length': 2.3988118811881187, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 36, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '358450', 'n_tokens_mistral': 3331, 'n_tokens_neox': 2813, 'n_words': 520}