-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't allow class with cardinalities on P and on a subproperty of P (#…
…982) * fix (OntologyResponderV2): Don't allow a class to have a cardinality on P and on a subproperty of P. * docs (knora-ontologies): Update docs and release notes.
- Loading branch information
Benjamin Geer
authored
Aug 29, 2018
1 parent
b12b83e
commit 098a0fe
Showing
9 changed files
with
253 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
..._test_data/responders.v2.OntologyResponderV2Spec/class-inherits-prop-and-subprop-onto.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix knora-base: <http://www.knora.org/ontology/knora-base#> . | ||
@prefix salsah-gui: <http://www.knora.org/ontology/salsah-gui#> . | ||
@base <http://www.knora.org/ontology/invalid> . | ||
|
||
# An ontology containing a class that inherits a property from a base class | ||
# and a subproperty from another base class. | ||
|
||
@prefix : <http://www.knora.org/ontology/invalid#> . | ||
<http://www.knora.org/ontology/invalid> rdf:type owl:Ontology ; | ||
rdfs:label "The invalid ontology" ; | ||
knora-base:attachedToProject <http://rdfh.ch/projects/0001> . | ||
|
||
|
||
:hasAuthor rdf:type owl:ObjectProperty ; | ||
|
||
rdfs:subPropertyOf knora-base:hasValue ; | ||
|
||
rdfs:label "has author"@en ; | ||
|
||
knora-base:objectClassConstraint knora-base:TextValue . | ||
|
||
|
||
:hasPoet rdf:type owl:ObjectProperty ; | ||
|
||
rdfs:subPropertyOf :hasAuthor ; | ||
|
||
rdfs:label "has poet"@en ; | ||
|
||
knora-base:objectClassConstraint knora-base:TextValue . | ||
|
||
|
||
:Text rdf:type owl:Class ; | ||
|
||
rdfs:subClassOf knora-base:Resource , | ||
[ | ||
rdf:type owl:Restriction ; | ||
owl:onProperty :hasAuthor ; | ||
owl:cardinality "1"^^xsd:nonNegativeInteger ; | ||
salsah-gui:guiOrder "1"^^xsd:nonNegativeInteger | ||
] ; | ||
|
||
knora-base:resourceIcon "thing.png" ; | ||
|
||
rdfs:label "text"@en . | ||
|
||
|
||
:Poem rdf:type owl:Class ; | ||
|
||
rdfs:subClassOf knora-base:Resource , | ||
[ | ||
rdf:type owl:Restriction ; | ||
owl:onProperty :hasPoet ; | ||
owl:minCardinality "0"^^xsd:nonNegativeInteger ; | ||
salsah-gui:guiOrder "2"^^xsd:nonNegativeInteger | ||
] ; | ||
|
||
knora-base:resourceIcon "thing.png" ; | ||
|
||
rdfs:label "poem"@en . | ||
|
||
|
||
:InvalidPoem rdf:type owl:Class ; | ||
|
||
rdfs:subClassOf :Text, :Poem ; | ||
|
||
knora-base:resourceIcon "thing.png" ; | ||
|
||
rdfs:label "invalid poem"@en . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.