Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardinality test #774

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions testcases/class-expression-issues/max-cardinality-ttl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ontologies": [
{
"id": "max-cardinality-ttl",
"preferredPrefix": "max-cardinality-ttl",
"ontology_purl": "./testcases/class-expression-issues/max-cardinality.ttl"
}
]
}
9 changes: 9 additions & 0 deletions testcases/class-expression-issues/max-cardinality.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ontologies": [
{
"id": "max-cardinality",
"preferredPrefix": "max-cardinality",
"ontology_purl": "./testcases/class-expression-issues/max-cardinality.owl"
}
]
}
56 changes: 56 additions & 0 deletions testcases/class-expression-issues/max-cardinality.owl
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl"
xml:base="http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<owl:Ontology rdf:about="http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl"/>



<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Object Properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->




<!-- http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl#hasArm -->

<owl:ObjectProperty rdf:about="http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl#hasArm"/>



<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->




<!-- http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl#Person -->

<owl:Class rdf:about="http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl#Person">
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl#hasArm"/>
<owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">2</owl:maxCardinality>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
</rdf:RDF>



<!-- Generated by the OWL API (version 4.5.24.2023-01-14T21:28:32Z) https://github.com/owlcs/owlapi -->

31 changes: 31 additions & 0 deletions testcases/class-expression-issues/max-cardinality.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@prefix : <http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl> .

<http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl> rdf:type owl:Ontology .

#################################################################
# Object Properties
#################################################################

### http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl#hasArm
:hasArm rdf:type owl:ObjectProperty .


#################################################################
# Classes
#################################################################

### http://www.ebi.ac.uk/testcases/class-expression-issues/maxCardinality.owl#Person
:Person rdf:type owl:Class ;
rdfs:subClassOf [ rdf:type owl:Restriction ;
owl:onProperty :hasArm ;
owl:maxCardinality 2
] .


### Generated by the OWL API (version 4.5.24.2023-01-14T21:28:32Z) https://github.com/owlcs/owlapi
Loading