Debian Codegraph @

FaCT++.Java/src/test/java/bugs/VerifyComplianceOWLSNewFeaturesTestCase.java

raw symbols SCIP
1 package bugs;
2
3 import static org.junit.Assert.assertEquals;
4
5 import java.util.Arrays;
6 import java.util.HashSet;
7
8 import javax.annotation.Nonnull;
9
10 import org.junit.Ignore;
11 import org.junit.Test;
12 import org.semanticweb.owlapi.apibinding.OWLManager;
13 import org.semanticweb.owlapi.io.StringDocumentSource;
14 import org.semanticweb.owlapi.model.IRI;
15 import org.semanticweb.owlapi.model.OWLClass;
16 import org.semanticweb.owlapi.model.OWLDataProperty;
17 import org.semanticweb.owlapi.model.OWLNamedIndividual;
18 import org.semanticweb.owlapi.model.OWLObjectProperty;
19 import org.semanticweb.owlapi.model.OWLOntology;
20 import org.semanticweb.owlapi.model.OWLOntologyCreationException;
21 import org.semanticweb.owlapi.reasoner.OWLReasoner;
22
23 @SuppressWarnings("javadoc")
24 public class VerifyComplianceOWLSNewFeaturesTestCase extends VerifyComplianceBase {
25
26 @Nonnull
27 String in = "Prefix(:=<http://www.w3.org/2002/07/owl#>)\n"
28 + "Prefix(owl:=<http://www.w3.org/2002/07/owl#>)\n"
29 + "Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)\n"
30 + "Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)\n"
31 + "Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)\n"
32 + "Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)\n"
33 + "\n"
34 + "\n"
35 + "Ontology(\n"
36 + "Declaration(Class(<urn:process#Any-Order>))\nDeclaration(Class(<urn:process#AtomicProcess>))\nDeclaration(Class(<urn:process#Binding>))\nDeclaration(Class(<urn:process#Choice>))\nDeclaration(Class(<urn:process#CompositeProcess>))\nDeclaration(Class(<urn:process#ConditionalEffect>))\nDeclaration(Class(<urn:process#ConditionalOutput>))\nDeclaration(Class(<urn:process#ControlConstruct>))\nDeclaration(Class(<urn:process#ControlConstructBag>))\nDeclaration(Class(<urn:process#ControlConstructList>))\nDeclaration(Class(<urn:process#If-Then-Else>))\nDeclaration(Class(<urn:process#Input>))\nDeclaration(Class(<urn:process#InputBinding>))\nDeclaration(Class(<urn:process#Iterate>))\nDeclaration(Class(<urn:process#Local>))\nDeclaration(Class(<urn:process#Output>))\nDeclaration(Class(<urn:process#OutputBinding>))\nDeclaration(Class(<urn:process#Parameter>))\nDeclaration(Class(<urn:process#Participant>))\nDeclaration(Class(<urn:process#Perform>))\nDeclaration(Class(<urn:process#Process>))\nDeclaration(Class(<urn:process#ProcessComponent>))\nDeclaration(Class(<urn:process#Produce>))\nDeclaration(Class(<urn:process#Repeat-Until>))\nDeclaration(Class(<urn:process#Repeat-While>))\nDeclaration(Class(<urn:process#Result>))\nDeclaration(Class(<urn:process#ResultVar>))\nDeclaration(Class(<urn:process#Sequence>))\nDeclaration(Class(<urn:process#SimpleProcess>))\nDeclaration(Class(<urn:process#Split>))\nDeclaration(Class(<urn:process#Split-Join>))\nDeclaration(Class(<urn:process#Unordered>))\nDeclaration(Class(<urn:process#ValueOf>))\nDeclaration(Class(<urn:profile#Profile>))\nDeclaration(Class(<urn:profile#ServiceCategory>))\nDeclaration(Class(<urn:profile#ServiceParameter>))\nDeclaration(Class(<urn:Service.owl#Service>))\nDeclaration(Class(<urn:Service.owl#ServiceGrounding>))\nDeclaration(Class(<urn:Service.owl#ServiceModel>))\nDeclaration(Class(<urn:Service.owl#ServiceProfile>))\nDeclaration(Class(<urn:expr#Condition>))\nDeclaration(Class(<urn:expr#DRS-Condition>))\nDeclaration(Class(<urn:expr#DRS-Expression>))\nDeclaration(Class(<urn:expr#Expression>))\nDeclaration(Class(<urn:expr#KIF-Condition>))\nDeclaration(Class(<urn:expr#KIF-Expression>))\nDeclaration(Class(<urn:expr#LogicLanguage>))\nDeclaration(Class(<urn:expr#SWRL-Condition>))\nDeclaration(Class(<urn:expr#SWRL-Expression>))\nDeclaration(Class(<urn:generic/ObjectList.owl#List>))\nDeclaration(Class(<urn:timeentry#IntervalThing>))\nDeclaration(Class(<http://www.w3.org/2003/11/swrl#AtomList>))\nDeclaration(Class(<http://www.w3.org/2003/11/swrl#Variable>))\nDeclaration(ObjectProperty(<urn:process#collapse>))\nDeclaration(ObjectProperty(<urn:process#collapsesTo>))\nDeclaration(ObjectProperty(<urn:process#components>))\nDeclaration(ObjectProperty(<urn:process#composedOf>))\nDeclaration(ObjectProperty(<urn:process#computedEffect>))\nDeclaration(ObjectProperty(<urn:process#computedInput>))\nDeclaration(ObjectProperty(<urn:process#computedOutput>))\nDeclaration(ObjectProperty(<urn:process#computedPrecondition>))\nDeclaration(ObjectProperty(<urn:process#else>))\nDeclaration(ObjectProperty(<urn:process#expand>))\nDeclaration(ObjectProperty(<urn:process#expandsTo>))\nDeclaration(ObjectProperty(<urn:process#fromProcess>))\nDeclaration(ObjectProperty(<urn:process#hasClient>))\nDeclaration(ObjectProperty(<urn:process#hasDataFrom>))\nDeclaration(ObjectProperty(<urn:process#hasEffect>))\nDeclaration(ObjectProperty(<urn:process#hasInput>))\nDeclaration(ObjectProperty(<urn:process#hasLocal>))\nDeclaration(ObjectProperty(<urn:process#hasOutput>))\nDeclaration(ObjectProperty(<urn:process#hasParameter>))\nDeclaration(ObjectProperty(<urn:process#hasParticipant>))\nDeclaration(ObjectProperty(<urn:process#hasPrecondition>))\nDeclaration(ObjectProperty(<urn:process#hasResult>))\nDeclaration(ObjectProperty(<urn:process#hasResultVar>))\nDeclaration(ObjectProperty(<urn:process#ifCondition>))\nDeclaration(ObjectProperty(<urn:process#inCondition>))\nDeclaration(ObjectProperty(<urn:process#performedBy>))\nDeclaration(ObjectProperty(<urn:process#process>))\nDeclaration(ObjectProperty(<urn:process#producedBinding>))\nDeclaration(ObjectProperty(<urn:process#realizedBy>))\nDeclaration(ObjectProperty(<urn:process#realizes>))\nDeclaration(ObjectProperty(<urn:process#theVar>))\nDeclaration(ObjectProperty(<urn:process#then>))\nDeclaration(ObjectProperty(<urn:process#timeout>))\nDeclaration(ObjectProperty(<urn:process#toParam>))\nDeclaration(ObjectProperty(<urn:process#untilCondition>))\nDeclaration(ObjectProperty(<urn:process#untilProcess>))\nDeclaration(ObjectProperty(<urn:process#valueSource>))\nDeclaration(ObjectProperty(<urn:process#whileCondition>))\nDeclaration(ObjectProperty(<urn:process#whileProcess>))\nDeclaration(ObjectProperty(<urn:process#withOutput>))\nDeclaration(ObjectProperty(<urn:profile#contactInformation>))\nDeclaration(ObjectProperty(<urn:profile#hasInput>))\nDeclaration(ObjectProperty(<urn:profile#hasOutput>))\nDeclaration(ObjectProperty(<urn:profile#hasParameter>))\nDeclaration(ObjectProperty(<urn:profile#hasPrecondition>))\nDeclaration(ObjectProperty(<urn:profile#hasResult>))\nDeclaration(ObjectProperty(<urn:profile#has_process>))\nDeclaration(ObjectProperty(<urn:profile#sParameter>))\nDeclaration(ObjectProperty(<urn:profile#serviceCategory>))\nDeclaration(ObjectProperty(<urn:profile#serviceParameter>))\nDeclaration(ObjectProperty(<urn:Service.owl#describedBy>))\nDeclaration(ObjectProperty(<urn:Service.owl#describes>))\nDeclaration(ObjectProperty(<urn:Service.owl#isDescribedBy>))\nDeclaration(ObjectProperty(<urn:Service.owl#isPresentedBy>))\nDeclaration(ObjectProperty(<urn:Service.owl#isSupportedBy>))\nDeclaration(ObjectProperty(<urn:Service.owl#presentedBy>))\nDeclaration(ObjectProperty(<urn:Service.owl#presents>))\nDeclaration(ObjectProperty(<urn:Service.owl#providedBy>))\nDeclaration(ObjectProperty(<urn:Service.owl#provides>))\nDeclaration(ObjectProperty(<urn:Service.owl#supportedBy>))\nDeclaration(ObjectProperty(<urn:Service.owl#supports>))\nDeclaration(ObjectProperty(<urn:expr#expressionLanguage>))\nDeclaration(ObjectProperty(<urn:generic/ObjectList.owl#first>))\nDeclaration(ObjectProperty(<urn:generic/ObjectList.owl#rest>))\nDeclaration(DataProperty(<urn:process#invocable>))\nDeclaration(DataProperty(<urn:process#name>))\nDeclaration(DataProperty(<urn:process#parameterType>))\nDeclaration(DataProperty(<urn:process#parameterValue>))\nDeclaration(DataProperty(<urn:process#valueData>))\nDeclaration(DataProperty(<urn:process#valueForm>))\nDeclaration(DataProperty(<urn:process#valueFunction>))\nDeclaration(DataProperty(<urn:process#valueSpecifier>))\nDeclaration(DataProperty(<urn:process#valueType>))\nDeclaration(DataProperty(<urn:profile#categoryName>))\nDeclaration(DataProperty(<urn:profile#code>))\nDeclaration(DataProperty(<urn:profile#serviceClassification>))\nDeclaration(DataProperty(<urn:profile#serviceName>))\nDeclaration(DataProperty(<urn:profile#serviceParameterName>))\nDeclaration(DataProperty(<urn:profile#serviceProduct>))\nDeclaration(DataProperty(<urn:profile#taxonomy>))\nDeclaration(DataProperty(<urn:profile#textDescription>))\nDeclaration(DataProperty(<urn:profile#value>))\nDeclaration(DataProperty(<urn:expr#expressionBody>))\nDeclaration(DataProperty(<urn:expr#refURI>))\nDeclaration(NamedIndividual(<urn:process#TheClient>))\nDeclaration(NamedIndividual(<urn:process#TheParentPerform>))\nDeclaration(NamedIndividual(<urn:process#TheServer>))\nDeclaration(NamedIndividual(<urn:process#ThisPerform>))\nDeclaration(NamedIndividual(<urn:expr#AlwaysTrue>))\nDeclaration(NamedIndividual(<urn:expr#DRS>))\nDeclaration(NamedIndividual(<urn:expr#KIF>))\nDeclaration(NamedIndividual(<urn:expr#SWRL>))\nDeclaration(NamedIndividual(<urn:generic/ObjectList.owl#nil>))\n"
37 + "EquivalentClasses(<urn:process#Any-Order> <urn:process#Unordered>)\n"
38 + "SubClassOf(<urn:process#Any-Order> <urn:process#ControlConstruct>)\n"
39 + "SubClassOf(<urn:process#Any-Order> ObjectAllValuesFrom(<urn:process#components> <urn:process#ControlConstructBag>))\n"
40 + "SubClassOf(<urn:process#Any-Order> ObjectExactCardinality(1 <urn:process#components>))\n"
41 + "SubClassOf(<urn:process#AtomicProcess> <urn:process#Process>)\n"
42 + "SubClassOf(<urn:process#AtomicProcess> ObjectHasValue(<urn:process#hasClient> <urn:process#TheClient>))\n"
43 + "SubClassOf(<urn:process#AtomicProcess> ObjectHasValue(<urn:process#performedBy> <urn:process#TheServer>))\n"
44 + "DisjointClasses(<urn:process#AtomicProcess> <urn:process#CompositeProcess>)\n"
45 + "DisjointClasses(<urn:process#AtomicProcess> <urn:process#SimpleProcess>)\n"
46 + "SubClassOf(<urn:process#Binding> ObjectExactCardinality(1 <urn:process#toParam>))\n"
47 + "SubClassOf(<urn:process#Binding> ObjectMaxCardinality(1 <urn:process#valueSource>))\n"
48 + "SubClassOf(<urn:process#Binding> DataMaxCardinality(1 <urn:process#valueData>))\n"
49 + "SubClassOf(<urn:process#Binding> DataMaxCardinality(1 <urn:process#valueSpecifier>))\n"
50 + "SubClassOf(<urn:process#Choice> <urn:process#ControlConstruct>)\n"
51 + "SubClassOf(<urn:process#Choice> ObjectAllValuesFrom(<urn:process#components> <urn:process#ControlConstructBag>))\n"
52 + "SubClassOf(<urn:process#Choice> ObjectExactCardinality(1 <urn:process#components>))\n"
53 + "EquivalentClasses(<urn:process#CompositeProcess> ObjectIntersectionOf(ObjectExactCardinality(1 <urn:process#composedOf>) <urn:process#Process>))\n"
54 + "SubClassOf(<urn:process#CompositeProcess> <urn:process#Process>)\n"
55 + "SubClassOf(<urn:process#CompositeProcess> ObjectMaxCardinality(1 <urn:process#computedEffect>))\n"
56 + "SubClassOf(<urn:process#CompositeProcess> ObjectMaxCardinality(1 <urn:process#computedInput>))\n"
57 + "SubClassOf(<urn:process#CompositeProcess> ObjectMaxCardinality(1 <urn:process#computedOutput>))\n"
58 + "SubClassOf(<urn:process#CompositeProcess> ObjectMaxCardinality(1 <urn:process#computedPrecondition>))\n"
59 + "SubClassOf(<urn:process#CompositeProcess> DataMaxCardinality(1 <urn:process#invocable>))\n"
60 + "DisjointClasses(<urn:process#CompositeProcess> <urn:process#SimpleProcess>)\n"
61 + "EquivalentClasses(<urn:process#ControlConstruct> <urn:process#ProcessComponent>)\n"
62 + "SubClassOf(<urn:process#ControlConstruct> ObjectMaxCardinality(1 <urn:process#timeout>))\n"
63 + "SubClassOf(<urn:process#ControlConstructBag> <urn:generic/ObjectList.owl#List>)\n"
64 + "SubClassOf(<urn:process#ControlConstructBag> ObjectAllValuesFrom(<urn:generic/ObjectList.owl#first> <urn:process#ControlConstruct>))\n"
65 + "SubClassOf(<urn:process#ControlConstructBag> ObjectAllValuesFrom(<urn:generic/ObjectList.owl#rest> <urn:process#ControlConstructBag>))\n"
66 + "SubClassOf(<urn:process#ControlConstructList> <urn:generic/ObjectList.owl#List>)\n"
67 + "SubClassOf(<urn:process#ControlConstructList> ObjectAllValuesFrom(<urn:generic/ObjectList.owl#first> <urn:process#ControlConstruct>))\n"
68 + "SubClassOf(<urn:process#ControlConstructList> ObjectAllValuesFrom(<urn:generic/ObjectList.owl#rest> <urn:process#ControlConstructList>))\n"
69 + "SubClassOf(<urn:process#If-Then-Else> <urn:process#ControlConstruct>)\n"
70 + "SubClassOf(<urn:process#If-Then-Else> ObjectExactCardinality(1 <urn:process#ifCondition>))\n"
71 + "SubClassOf(<urn:process#If-Then-Else> ObjectExactCardinality(1 <urn:process#then>))\n"
72 + "SubClassOf(<urn:process#If-Then-Else> ObjectMaxCardinality(1 <urn:process#else>))\n"
73 + "SubClassOf(<urn:process#Input> <urn:process#Parameter>)\n"
74 + "DisjointClasses(<urn:process#Input> <urn:process#Local>)\n"
75 + "DisjointClasses(<urn:process#Input> <urn:process#Output>)\n"
76 + "DisjointClasses(<urn:process#Input> <urn:process#ResultVar>)\n"
77 + "EquivalentClasses(<urn:process#InputBinding> ObjectIntersectionOf(ObjectAllValuesFrom(<urn:process#toParam> <urn:process#Input>) <urn:process#Binding>))\n"
78 + "SubClassOf(<urn:process#InputBinding> <urn:process#Binding>)\n"
79 + "SubClassOf(<urn:process#Iterate> <urn:process#ControlConstruct>)\n"
80 + "SubClassOf(<urn:process#Local> <urn:process#Parameter>)\n"
81 + "DisjointClasses(<urn:process#Local> <urn:process#Output>)\n"
82 + "DisjointClasses(<urn:process#Local> <urn:process#ResultVar>)\n"
83 + "SubClassOf(<urn:process#Output> <urn:process#Parameter>)\n"
84 + "DisjointClasses(<urn:process#Output> <urn:process#ResultVar>)\n"
85 + "EquivalentClasses(<urn:process#OutputBinding> ObjectIntersectionOf(ObjectAllValuesFrom(<urn:process#toParam> <urn:process#Output>) <urn:process#Binding>))\n"
86 + "SubClassOf(<urn:process#OutputBinding> <urn:process#Binding>)\n"
87 + "SubClassOf(<urn:process#Parameter> <http://www.w3.org/2003/11/swrl#Variable>)\n"
88 + "SubClassOf(<urn:process#Parameter> DataMinCardinality(1 <urn:process#parameterType>))\n"
89 + "SubClassOf(<urn:process#Perform> <urn:process#ControlConstruct>)\n"
90 + "SubClassOf(<urn:process#Perform> ObjectExactCardinality(1 <urn:process#process>))\n"
91 + "EquivalentClasses(<urn:process#Process> ObjectUnionOf(<urn:process#AtomicProcess> <urn:process#CompositeProcess> <urn:process#SimpleProcess>))\n"
92 + "SubClassOf(<urn:process#Process> <urn:Service.owl#ServiceModel>)\n"
93 + "SubClassOf(<urn:process#Process> DataMaxCardinality(1 <urn:process#name>))\n"
94 + "SubClassOf(<urn:process#Produce> <urn:process#ControlConstruct>)\n"
95 + "SubClassOf(<urn:process#Repeat-Until> <urn:process#Iterate>)\n"
96 + "SubClassOf(<urn:process#Repeat-Until> ObjectExactCardinality(1 <urn:process#untilCondition>))\n"
97 + "SubClassOf(<urn:process#Repeat-Until> ObjectExactCardinality(1 <urn:process#untilProcess>))\n"
98 + "SubClassOf(<urn:process#Repeat-While> <urn:process#Iterate>)\n"
99 + "SubClassOf(<urn:process#Repeat-While> ObjectExactCardinality(1 <urn:process#whileCondition>))\n"
100 + "SubClassOf(<urn:process#Repeat-While> ObjectExactCardinality(1 <urn:process#whileProcess>))\n"
101 + "SubClassOf(<urn:process#ResultVar> <urn:process#Parameter>)\n"
102 + "SubClassOf(<urn:process#Sequence> <urn:process#ControlConstruct>)\n"
103 + "SubClassOf(<urn:process#Sequence> ObjectAllValuesFrom(<urn:process#components> <urn:process#ControlConstructList>))\n"
104 + "SubClassOf(<urn:process#Sequence> ObjectExactCardinality(1 <urn:process#components>))\n"
105 + "SubClassOf(<urn:process#SimpleProcess> <urn:process#Process>)\n"
106 + "SubClassOf(<urn:process#Split> <urn:process#ControlConstruct>)\n"
107 + "SubClassOf(<urn:process#Split> ObjectAllValuesFrom(<urn:process#components> <urn:process#ControlConstructBag>))\n"
108 + "SubClassOf(<urn:process#Split> ObjectExactCardinality(1 <urn:process#components>))\n"
109 + "SubClassOf(<urn:process#Split-Join> <urn:process#ControlConstruct>)\n"
110 + "SubClassOf(<urn:process#Split-Join> ObjectAllValuesFrom(<urn:process#components> <urn:process#ControlConstructBag>))\n"
111 + "SubClassOf(<urn:process#ValueOf> ObjectExactCardinality(1 <urn:process#theVar>))\n"
112 + "SubClassOf(<urn:process#ValueOf> ObjectMaxCardinality(1 <urn:process#fromProcess>))\n"
113 + "SubClassOf(<urn:profile#Profile> <urn:Service.owl#ServiceProfile>)\n"
114 + "SubClassOf(<urn:profile#Profile> DataExactCardinality(1 <urn:profile#serviceName>))\n"
115 + "SubClassOf(<urn:profile#Profile> DataExactCardinality(1 <urn:profile#textDescription>))\n"
116 + "SubClassOf(<urn:profile#ServiceCategory> DataExactCardinality(1 <urn:profile#categoryName>))\n"
117 + "SubClassOf(<urn:profile#ServiceCategory> DataExactCardinality(1 <urn:profile#code>))\n"
118 + "SubClassOf(<urn:profile#ServiceCategory> DataExactCardinality(1 <urn:profile#taxonomy>))\n"
119 + "SubClassOf(<urn:profile#ServiceCategory> DataExactCardinality(1 <urn:profile#value>))\n"
120 + "SubClassOf(<urn:profile#ServiceParameter> ObjectExactCardinality(1 <urn:profile#sParameter>))\n"
121 + "SubClassOf(<urn:profile#ServiceParameter> DataExactCardinality(1 <urn:profile#serviceParameterName>))\n"
122 + "SubClassOf(<urn:Service.owl#Service> ObjectMaxCardinality(1 <urn:Service.owl#describedBy>))\n"
123 + "SubClassOf(<urn:Service.owl#ServiceGrounding> ObjectExactCardinality(1 <urn:Service.owl#supportedBy>))\n"
124 + "SubClassOf(<urn:expr#Condition> <urn:expr#Expression>)\n"
125 + "SubClassOf(<urn:expr#DRS-Condition> <urn:expr#Condition>)\n"
126 + "SubClassOf(<urn:expr#DRS-Condition> <urn:expr#DRS-Expression>)\n"
127 + "SubClassOf(<urn:expr#DRS-Expression> <urn:expr#Expression>)\n"
128 + "SubClassOf(<urn:expr#DRS-Expression> ObjectHasValue(<urn:expr#expressionLanguage> <urn:expr#DRS>))\n"
129 + "SubClassOf(<urn:expr#DRS-Expression> DataAllValuesFrom(<urn:expr#expressionBody> rdf:XMLLiteral))\n"
130 + "SubClassOf(<urn:expr#Expression> ObjectExactCardinality(1 <urn:expr#expressionLanguage>))\n"
131 + "SubClassOf(<urn:expr#Expression> DataExactCardinality(1 <urn:expr#expressionBody>))\n"
132 + "SubClassOf(<urn:expr#KIF-Condition> <urn:expr#Condition>)\n"
133 + "SubClassOf(<urn:expr#KIF-Condition> <urn:expr#KIF-Expression>)\n"
134 + "SubClassOf(<urn:expr#KIF-Expression> <urn:expr#Expression>)\n"
135 + "SubClassOf(<urn:expr#KIF-Expression> ObjectHasValue(<urn:expr#expressionLanguage> <urn:expr#KIF>))\n"
136 + "SubClassOf(<urn:expr#SWRL-Condition> <urn:expr#Condition>)\n"
137 + "SubClassOf(<urn:expr#SWRL-Condition> <urn:expr#SWRL-Expression>)\n"
138 + "SubClassOf(<urn:expr#SWRL-Expression> <urn:expr#Expression>)\n"
139 + "SubClassOf(<urn:expr#SWRL-Expression> ObjectHasValue(<urn:expr#expressionLanguage> <urn:expr#SWRL>))\n"
140 + "SubClassOf(<urn:expr#SWRL-Expression> DataAllValuesFrom(<urn:expr#expressionBody> rdf:XMLLiteral))\n"
141 + "EquivalentObjectProperties(<urn:process#collapse> <urn:process#collapsesTo>)\n"
142 + "InverseObjectProperties(<urn:process#collapsesTo> <urn:process#expandsTo>)\n"
143 + "ObjectPropertyDomain(<urn:process#collapsesTo> <urn:process#CompositeProcess>)\n"
144 + "ObjectPropertyRange(<urn:process#collapsesTo> <urn:process#SimpleProcess>)\n"
145 + "ObjectPropertyDomain(<urn:process#components> ObjectUnionOf(<urn:process#Any-Order> <urn:process#Choice> <urn:process#Sequence> <urn:process#Split> <urn:process#Split-Join>))\n"
146 + "ObjectPropertyDomain(<urn:process#composedOf> <urn:process#CompositeProcess>)\n"
147 + "ObjectPropertyRange(<urn:process#composedOf> <urn:process#ControlConstruct>)\n"
148 + "ObjectPropertyDomain(<urn:process#computedEffect> <urn:process#CompositeProcess>)\n"
149 + "ObjectPropertyRange(<urn:process#computedEffect> owl:Thing)\n"
150 + "ObjectPropertyDomain(<urn:process#computedInput> <urn:process#CompositeProcess>)\n"
151 + "ObjectPropertyRange(<urn:process#computedInput> owl:Thing)\n"
152 + "ObjectPropertyDomain(<urn:process#computedOutput> <urn:process#CompositeProcess>)\n"
153 + "ObjectPropertyRange(<urn:process#computedOutput> owl:Thing)\n"
154 + "ObjectPropertyDomain(<urn:process#computedPrecondition> <urn:process#CompositeProcess>)\n"
155 + "ObjectPropertyRange(<urn:process#computedPrecondition> owl:Thing)\n"
156 + "ObjectPropertyDomain(<urn:process#else> <urn:process#If-Then-Else>)\n"
157 + "ObjectPropertyRange(<urn:process#else> <urn:process#ControlConstruct>)\n"
158 + "EquivalentObjectProperties(<urn:process#expand> <urn:process#expandsTo>)\n"
159 + "ObjectPropertyDomain(<urn:process#expandsTo> <urn:process#SimpleProcess>)\n"
160 + "ObjectPropertyRange(<urn:process#expandsTo> <urn:process#CompositeProcess>)\n"
161 + "ObjectPropertyDomain(<urn:process#fromProcess> <urn:process#ValueOf>)\n"
162 + "ObjectPropertyRange(<urn:process#fromProcess> <urn:process#Perform>)\n"
163 + "SubObjectPropertyOf(<urn:process#hasClient> <urn:process#hasParticipant>)\n"
164 + "ObjectPropertyDomain(<urn:process#hasClient> <urn:process#Process>)\n"
165 + "ObjectPropertyDomain(<urn:process#hasDataFrom> <urn:process#Perform>)\n"
166 + "ObjectPropertyRange(<urn:process#hasDataFrom> <urn:process#Binding>)\n"
167 + "ObjectPropertyDomain(<urn:process#hasEffect> <urn:process#Result>)\n"
168 + "ObjectPropertyRange(<urn:process#hasEffect> <urn:expr#Expression>)\n"
169 + "SubObjectPropertyOf(<urn:process#hasInput> <urn:process#hasParameter>)\n"
170 + "ObjectPropertyDomain(<urn:process#hasInput> <urn:process#Process>)\n"
171 + "ObjectPropertyRange(<urn:process#hasInput> <urn:process#Input>)\n"
172 + "SubObjectPropertyOf(<urn:process#hasLocal> <urn:process#hasParameter>)\n"
173 + "ObjectPropertyDomain(<urn:process#hasLocal> <urn:process#Process>)\n"
174 + "ObjectPropertyRange(<urn:process#hasLocal> <urn:process#Local>)\n"
175 + "SubObjectPropertyOf(<urn:process#hasOutput> <urn:process#hasParameter>)\n"
176 + "ObjectPropertyDomain(<urn:process#hasOutput> <urn:process#Process>)\n"
177 + "ObjectPropertyRange(<urn:process#hasOutput> <urn:process#Output>)\n"
178 + "ObjectPropertyDomain(<urn:process#hasParameter> <urn:process#Process>)\n"
179 + "ObjectPropertyRange(<urn:process#hasParameter> <urn:process#Parameter>)\n"
180 + "ObjectPropertyDomain(<urn:process#hasParticipant> <urn:process#Process>)\n"
181 + "ObjectPropertyRange(<urn:process#hasParticipant> <urn:process#Participant>)\n"
182 + "ObjectPropertyDomain(<urn:process#hasPrecondition> <urn:process#Process>)\n"
183 + "ObjectPropertyRange(<urn:process#hasPrecondition> <urn:expr#Condition>)\n"
184 + "ObjectPropertyDomain(<urn:process#hasResult> <urn:process#Process>)\n"
185 + "ObjectPropertyRange(<urn:process#hasResult> <urn:process#Result>)\n"
186 + "ObjectPropertyDomain(<urn:process#hasResultVar> <urn:process#Result>)\n"
187 + "ObjectPropertyRange(<urn:process#hasResultVar> <urn:process#ResultVar>)\n"
188 + "ObjectPropertyDomain(<urn:process#ifCondition> <urn:process#If-Then-Else>)\n"
189 + "ObjectPropertyRange(<urn:process#ifCondition> <urn:expr#Condition>)\n"
190 + "ObjectPropertyDomain(<urn:process#inCondition> <urn:process#Result>)\n"
191 + "ObjectPropertyRange(<urn:process#inCondition> <urn:expr#Condition>)\n"
192 + "SubObjectPropertyOf(<urn:process#performedBy> <urn:process#hasParticipant>)\n"
193 + "ObjectPropertyDomain(<urn:process#performedBy> <urn:process#Process>)\n"
194 + "ObjectPropertyDomain(<urn:process#process> <urn:process#Perform>)\n"
195 + "ObjectPropertyRange(<urn:process#process> <urn:process#Process>)\n"
196 + "ObjectPropertyDomain(<urn:process#producedBinding> <urn:process#Produce>)\n"
197 + "ObjectPropertyRange(<urn:process#producedBinding> <urn:process#OutputBinding>)\n"
198 + "InverseObjectProperties(<urn:process#realizedBy> <urn:process#realizes>)\n"
199 + "ObjectPropertyDomain(<urn:process#realizedBy> <urn:process#SimpleProcess>)\n"
200 + "ObjectPropertyRange(<urn:process#realizedBy> <urn:process#AtomicProcess>)\n"
201 + "ObjectPropertyDomain(<urn:process#realizes> <urn:process#AtomicProcess>)\n"
202 + "ObjectPropertyRange(<urn:process#realizes> <urn:process#SimpleProcess>)\n"
203 + "ObjectPropertyDomain(<urn:process#theVar> <urn:process#ValueOf>)\n"
204 + "ObjectPropertyRange(<urn:process#theVar> <urn:process#Parameter>)\n"
205 + "ObjectPropertyDomain(<urn:process#then> <urn:process#If-Then-Else>)\n"
206 + "ObjectPropertyRange(<urn:process#then> <urn:process#ControlConstruct>)\n"
207 + "ObjectPropertyDomain(<urn:process#timeout> <urn:process#ControlConstruct>)\n"
208 + "ObjectPropertyRange(<urn:process#timeout> <urn:timeentry#IntervalThing>)\n"
209 + "ObjectPropertyDomain(<urn:process#toParam> <urn:process#Binding>)\n"
210 + "ObjectPropertyRange(<urn:process#toParam> <urn:process#Parameter>)\n"
211 + "ObjectPropertyDomain(<urn:process#untilCondition> <urn:process#Repeat-Until>)\n"
212 + "ObjectPropertyRange(<urn:process#untilCondition> <urn:expr#Condition>)\n"
213 + "ObjectPropertyDomain(<urn:process#untilProcess> <urn:process#Repeat-Until>)\n"
214 + "ObjectPropertyRange(<urn:process#untilProcess> <urn:process#ControlConstruct>)\n"
215 + "ObjectPropertyDomain(<urn:process#valueSource> <urn:process#Binding>)\n"
216 + "ObjectPropertyRange(<urn:process#valueSource> <urn:process#ValueOf>)\n"
217 + "ObjectPropertyDomain(<urn:process#whileCondition> <urn:process#Repeat-While>)\n"
218 + "ObjectPropertyRange(<urn:process#whileCondition> <urn:expr#Condition>)\n"
219 + "ObjectPropertyDomain(<urn:process#whileProcess> <urn:process#Repeat-While>)\n"
220 + "ObjectPropertyRange(<urn:process#whileProcess> <urn:process#ControlConstruct>)\n"
221 + "ObjectPropertyDomain(<urn:process#withOutput> <urn:process#Result>)\n"
222 + "ObjectPropertyRange(<urn:process#withOutput> <urn:process#OutputBinding>)\n"
223 + "ObjectPropertyDomain(<urn:profile#contactInformation> <urn:profile#Profile>)\n"
224 + "SubObjectPropertyOf(<urn:profile#hasInput> <urn:profile#hasParameter>)\n"
225 + "ObjectPropertyRange(<urn:profile#hasInput> <urn:process#Input>)\n"
226 + "SubObjectPropertyOf(<urn:profile#hasOutput> <urn:profile#hasParameter>)\n"
227 + "ObjectPropertyRange(<urn:profile#hasOutput> <urn:process#Output>)\n"
228 + "ObjectPropertyDomain(<urn:profile#hasParameter> <urn:profile#Profile>)\n"
229 + "ObjectPropertyRange(<urn:profile#hasParameter> <urn:process#Parameter>)\n"
230 + "ObjectPropertyDomain(<urn:profile#hasPrecondition> <urn:profile#Profile>)\n"
231 + "ObjectPropertyRange(<urn:profile#hasPrecondition> <urn:expr#Condition>)\n"
232 + "ObjectPropertyDomain(<urn:profile#hasResult> <urn:profile#Profile>)\n"
233 + "ObjectPropertyRange(<urn:profile#hasResult> <urn:process#Result>)\n"
234 + "FunctionalObjectProperty(<urn:profile#has_process>)\n"
235 + "ObjectPropertyDomain(<urn:profile#has_process> <urn:profile#Profile>)\n"
236 + "ObjectPropertyRange(<urn:profile#has_process> <urn:process#Process>)\n"
237 + "ObjectPropertyDomain(<urn:profile#sParameter> <urn:profile#ServiceParameter>)\n"
238 + "ObjectPropertyRange(<urn:profile#sParameter> owl:Thing)\n"
239 + "ObjectPropertyDomain(<urn:profile#serviceCategory> <urn:profile#Profile>)\n"
240 + "ObjectPropertyRange(<urn:profile#serviceCategory> <urn:profile#ServiceCategory>)\n"
241 + "ObjectPropertyDomain(<urn:profile#serviceParameter> <urn:profile#Profile>)\n"
242 + "ObjectPropertyRange(<urn:profile#serviceParameter> <urn:profile#ServiceParameter>)\n"
243 + "EquivalentObjectProperties(<urn:Service.owl#describedBy> <urn:Service.owl#isDescribedBy>)\n"
244 + "InverseObjectProperties(<urn:Service.owl#describedBy> <urn:Service.owl#describes>)\n"
245 + "ObjectPropertyDomain(<urn:Service.owl#describedBy> <urn:Service.owl#Service>)\n"
246 + "ObjectPropertyRange(<urn:Service.owl#describedBy> <urn:Service.owl#ServiceModel>)\n"
247 + "ObjectPropertyDomain(<urn:Service.owl#describes> <urn:Service.owl#ServiceModel>)\n"
248 + "ObjectPropertyRange(<urn:Service.owl#describes> <urn:Service.owl#Service>)\n"
249 + "EquivalentObjectProperties(<urn:Service.owl#isPresentedBy> <urn:Service.owl#presentedBy>)\n"
250 + "EquivalentObjectProperties(<urn:Service.owl#isSupportedBy> <urn:Service.owl#supportedBy>)\n"
251 + "InverseObjectProperties(<urn:Service.owl#presents> <urn:Service.owl#presentedBy>)\n"
252 + "ObjectPropertyDomain(<urn:Service.owl#presentedBy> <urn:Service.owl#ServiceProfile>)\n"
253 + "ObjectPropertyRange(<urn:Service.owl#presentedBy> <urn:Service.owl#Service>)\n"
254 + "ObjectPropertyDomain(<urn:Service.owl#presents> <urn:Service.owl#Service>)\n"
255 + "ObjectPropertyRange(<urn:Service.owl#presents> <urn:Service.owl#ServiceProfile>)\n"
256 + "InverseObjectProperties(<urn:Service.owl#providedBy> <urn:Service.owl#provides>)\n"
257 + "ObjectPropertyDomain(<urn:Service.owl#providedBy> <urn:Service.owl#Service>)\n"
258 + "ObjectPropertyRange(<urn:Service.owl#provides> <urn:Service.owl#Service>)\n"
259 + "InverseObjectProperties(<urn:Service.owl#supports> <urn:Service.owl#supportedBy>)\n"
260 + "ObjectPropertyDomain(<urn:Service.owl#supportedBy> <urn:Service.owl#ServiceGrounding>)\n"
261 + "ObjectPropertyRange(<urn:Service.owl#supportedBy> <urn:Service.owl#Service>)\n"
262 + "ObjectPropertyDomain(<urn:Service.owl#supports> <urn:Service.owl#Service>)\n"
263 + "ObjectPropertyRange(<urn:Service.owl#supports> <urn:Service.owl#ServiceGrounding>)\n"
264 + "ObjectPropertyDomain(<urn:expr#expressionLanguage> <urn:expr#Expression>)\n"
265 + "ObjectPropertyRange(<urn:expr#expressionLanguage> <urn:expr#LogicLanguage>)\n"
266 + "ObjectPropertyDomain(<urn:generic/ObjectList.owl#first> <urn:generic/ObjectList.owl#List>)\n"
267 + "ObjectPropertyDomain(<urn:generic/ObjectList.owl#rest> <urn:generic/ObjectList.owl#List>)\n"
268 + "DataPropertyDomain(<urn:process#invocable> <urn:process#CompositeProcess>)\n"
269 + "DataPropertyRange(<urn:process#invocable> xsd:boolean)\n"
270 + "DataPropertyDomain(<urn:process#name> <urn:process#Process>)\n"
271 + "DataPropertyDomain(<urn:process#parameterType> <urn:process#Parameter>)\n"
272 + "DataPropertyRange(<urn:process#parameterType> xsd:anyURI)\n"
273 + "DataPropertyDomain(<urn:process#parameterValue> <urn:process#Parameter>)\n"
274 + "DataPropertyRange(<urn:process#parameterValue> rdf:XMLLiteral)\n"
275 + "DataPropertyDomain(<urn:process#valueData> <urn:process#Binding>)\n"
276 + "SubDataPropertyOf(<urn:process#valueForm> <urn:process#valueSpecifier>)\n"
277 + "DataPropertyDomain(<urn:process#valueForm> <urn:process#Binding>)\n"
278 + "DataPropertyRange(<urn:process#valueForm> rdf:XMLLiteral)\n"
279 + "SubDataPropertyOf(<urn:process#valueFunction> <urn:process#valueSpecifier>)\n"
280 + "DataPropertyDomain(<urn:process#valueFunction> <urn:process#Binding>)\n"
281 + "DataPropertyRange(<urn:process#valueFunction> rdf:XMLLiteral)\n"
282 + "DataPropertyDomain(<urn:process#valueSpecifier> <urn:process#Binding>)\n"
283 + "SubDataPropertyOf(<urn:process#valueType> <urn:process#valueSpecifier>)\n"
284 + "DataPropertyDomain(<urn:process#valueType> <urn:process#Binding>)\n"
285 + "DataPropertyRange(<urn:process#valueType> xsd:anyURI)\n"
286 + "DataPropertyDomain(<urn:profile#categoryName> <urn:profile#ServiceCategory>)\n"
287 + "DataPropertyDomain(<urn:profile#code> <urn:profile#ServiceCategory>)\n"
288 + "DataPropertyDomain(<urn:profile#serviceClassification> <urn:profile#Profile>)\n"
289 + "DataPropertyRange(<urn:profile#serviceClassification> xsd:anyURI)\n"
290 + "DataPropertyDomain(<urn:profile#serviceName> <urn:profile#Profile>)\n"
291 + "DataPropertyDomain(<urn:profile#serviceParameterName> <urn:profile#ServiceParameter>)\n"
292 + "DataPropertyDomain(<urn:profile#serviceProduct> <urn:profile#Profile>)\n"
293 + "DataPropertyRange(<urn:profile#serviceProduct> xsd:anyURI)\n"
294 + "DataPropertyDomain(<urn:profile#taxonomy> <urn:profile#ServiceCategory>)\n"
295 + "DataPropertyDomain(<urn:profile#textDescription> <urn:profile#Profile>)\n"
296 + "DataPropertyDomain(<√.owl#value> <urn:profile#ServiceCategory>)\n"
297 + "DataPropertyDomain(<urn:expr#expressionBody> <urn:expr#Expression>)\n"
298 + "DataPropertyDomain(<urn:expr#refURI> <urn:expr#LogicLanguage>)\n"
299 + "DataPropertyRange(<urn:expr#refURI> xsd:anyURI)\n"
300 + "ClassAssertion(<urn:process#Participant> <urn:process#TheClient>)\n"
301 + "ClassAssertion(<urn:process#Perform> <urn:process#TheParentPerform>)\n"
302 + "ClassAssertion(<urn:process#Participant> <urn:process#TheServer>)\n"
303 + "ClassAssertion(<urn:process#Perform> <urn:process#ThisPerform>)\n"
304 + "ClassAssertion(<urn:expr#SWRL-Condition> <urn:expr#AlwaysTrue>)\n"
305 + "ObjectPropertyAssertion(<urn:expr#expressionLanguage> <urn:expr#AlwaysTrue> <urn:expr#SWRL>)\n"
306 + "ClassAssertion(<urn:expr#LogicLanguage> <urn:expr#DRS>)\n"
307 + "DataPropertyAssertion(<urn:expr#refURI> <urn:expr#DRS> \"urn:generic/drs.owl\"^^xsd:anyURI)\n"
308 + "ClassAssertion(<urn:expr#LogicLanguage> <urn:expr#KIF>)\n"
309 + "DataPropertyAssertion(<urn:expr#refURI> <urn:expr#KIF> \"http://logic.stanford.edu/kif/kif.html\"^^xsd:anyURI)\n"
310 + "ClassAssertion(<urn:expr#LogicLanguage> <urn:expr#SWRL>)\n"
311 + "DataPropertyAssertion(<urn:expr#refURI> <urn:expr#SWRL> \"http://www.w3.org/2003/11/swrl\"^^xsd:anyURI)\n"
312 + "ClassAssertion(<urn:generic/ObjectList.owl#List> <urn:generic/ObjectList.owl#nil>)\n"
313 + ")";
314
315 @Override
316 protected OWLOntology load(String input)
317 throws OWLOntologyCreationException {
318 OWLOntology onto = OWLManager.createOWLOntologyManager()
319 .loadOntologyFromOntologyDocument(new StringDocumentSource(in));
320 return onto;
321 }
322
323 @Override
324 protected String input() {
325 return "";
326 }
327
328 @Test
329 public void shouldPassgetObjectPropertyRangesisPresentedByfalse() {
330 OWLClass Thing = C("http://www.w3.org/2002/07/owl#Thing");
331 OWLClass Service = C("urn:Service.owl#Service");
332 OWLObjectProperty isPresentedBy = OP("urn:Service.owl#isPresentedBy");
333 // expected Thing, Service
334 // actual__ isPresentedBy, false
335 equal(reasoner.getObjectPropertyRanges(isPresentedBy, false), Thing,
336 Service);
337 }
338
339 @Test
340 public void
341 shouldPassgetObjectPropertyRangesisPresentedByfalseBasicOntology()
342 throws OWLOntologyCreationException {
343 String inputString = "Prefix(:=<http://www.w3.org/2002/07/owl#>)\n"
344 + "Prefix(owl:=<http://www.w3.org/2002/07/owl#>)\n"
345 + "Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)\n"
346 + "Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)\n"
347 + "Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)\n"
348 + "Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)\n"
349 + "Ontology(\n"
350 + "Declaration(Class(<urn:Service.owl#Service>))\n"
351 + "Declaration(ObjectProperty(<urn:Service.owl#isPresentedBy>))\n"
352 + "Declaration(ObjectProperty(<urn:Service.owl#presentedBy>))\n\n"
353 + "EquivalentObjectProperties(<urn:Service.owl#isPresentedBy> <urn:Service.owl#presentedBy>)\n"
354 + "ObjectPropertyRange(<urn:Service.owl#presentedBy> <urn:Service.owl#Service>)\n"
355 + ")";
356 OWLOntology onto = OWLManager.createOWLOntologyManager()
357 .loadOntologyFromOntologyDocument(
358 new StringDocumentSource(inputString));
359 OWLReasoner r = factory().createReasoner(onto);
360 OWLClass Thing = C("http://www.w3.org/2002/07/owl#Thing");
361 OWLClass Service = C("urn:Service.owl#Service");
362 OWLObjectProperty isPresentedBy = OP("urn:Service.owl#isPresentedBy");
363 // expected Thing, Service
364 // actual__ isPresentedBy, false
365 equal(r.getObjectPropertyRanges(isPresentedBy, false), Thing, Service);
366 }
367
368 @Test
369 @Ignore("disjoint properties not supported")
370 public void shouldPassgetDisjointObjectPropertieshasOutput1() {
371 OWLObjectProperty hasLocal = OP("urn:process#hasLocal");
372 OWLObjectProperty hasInput = OP("urn:process#hasInput");
373 OWLObjectProperty hasInput1 = OP("urn:profile#hasInput");
374 OWLObjectProperty hasResultVar = OP("urn:process#hasResultVar");
375 OWLObjectProperty hasOutput = OP("urn:profile#hasOutput");
376 // expected hasLocal, hasInput, hasInput, hasResultVar,
377 // bottomObjectProperty
378 // actual__ hasOutput
379 equal(reasoner.getDisjointObjectProperties(hasOutput), hasLocal,
380 hasInput, hasInput1, hasResultVar, bottomObjectProperty);
381 }
382
383 @Test
384 @Ignore("disjoint properties not supported")
385 public void shouldPassgetDisjointObjectPropertieshasInput2() {
386 OWLObjectProperty hasOutput = OP("urn:profile#hasOutput");
387 OWLObjectProperty hasLocal = OP("urn:process#hasLocal");
388 OWLObjectProperty hasOutput1 = OP("urn:process#hasOutput");
389 OWLObjectProperty hasResultVar = OP("urn:process#hasResultVar");
390 OWLObjectProperty hasInput = OP("urn:process#hasInput");
391 // expected hasOutput, hasLocal, hasOutput, hasResultVar,
392 // bottomObjectProperty
393 // actual__ hasInput
394 equal(reasoner.getDisjointObjectProperties(hasInput), hasOutput,
395 hasLocal, hasOutput1, hasResultVar, bottomObjectProperty);
396 }
397
398 @Test
399 @Ignore("disjoint properties not supported")
400 public void shouldPassgetDisjointObjectPropertieshasResultVar() {
401 OWLObjectProperty hasOutput = OP("urn:profile#hasOutput");
402 OWLObjectProperty hasLocal = OP("urn:process#hasLocal");
403 OWLObjectProperty hasInput = OP("urn:process#hasInput");
404 OWLObjectProperty hasOutput1 = OP("urn:process#hasOutput");
405 OWLObjectProperty hasInput1 = OP("urn:profile#hasInput");
406 OWLObjectProperty hasResultVar = OP("urn:process#hasResultVar");
407 // expected hasOutput, hasLocal, hasInput, hasOutput, hasInput,
408 // bottomObjectProperty
409 // actual__ hasResultVar
410 equal(reasoner.getDisjointObjectProperties(hasResultVar), hasOutput,
411 hasLocal, hasInput, hasOutput1, hasInput1, bottomObjectProperty);
412 }
413
414 @Test
415 @Ignore("disjoint properties not supported")
416 public void shouldPassgetDisjointObjectPropertieshasLocal() {
417 OWLObjectProperty hasOutput = OP("urn:profile#hasOutput");
418 OWLObjectProperty hasInput = OP("urn:process#hasInput");
419 OWLObjectProperty hasOutput1 = OP("urn:process#hasOutput");
420 OWLObjectProperty hasInput1 = OP("urn:profile#hasInput");
421 OWLObjectProperty hasResultVar = OP("urn:process#hasResultVar");
422 OWLObjectProperty hasLocal = OP("urn:process#hasLocal");
423 // expected hasOutput, hasInput, hasOutput, hasInput, hasResultVar,
424 // bottomObjectProperty
425 // actual__ hasLocal
426 equal(reasoner.getDisjointObjectProperties(hasLocal), hasOutput,
427 hasInput, hasOutput1, hasInput1, hasResultVar,
428 bottomObjectProperty);
429 }
430
431 @Test
432 @Ignore("disjoint properties not supported")
433 public void shouldPassgetDisjointObjectPropertieshasInput() {
434 OWLObjectProperty hasOutput = OP("urn:profile#hasOutput");
435 OWLObjectProperty hasLocal = OP("urn:process#hasLocal");
436 OWLObjectProperty hasOutput1 = OP("urn:process#hasOutput");
437 OWLObjectProperty hasResultVar = OP("urn:process#hasResultVar");
438 OWLObjectProperty hasInput = OP("urn:profile#hasInput");
439 // expected hasOutput, hasLocal, hasOutput, hasResultVar,
440 // bottomObjectProperty
441 // actual__ hasInput
442 equal(reasoner.getDisjointObjectProperties(hasInput), hasOutput,
443 hasLocal, hasOutput1, hasResultVar, bottomObjectProperty);
444 }
445
446 @Test
447 @Ignore("disjoint properties not supported")
448 public void shouldPassgetDisjointObjectPropertieshasOutput() {
449 OWLObjectProperty hasLocal = OP("urn:process#hasLocal");
450 OWLObjectProperty hasInput = OP("urn:process#hasInput");
451 OWLObjectProperty hasInput1 = OP("urn:profile#hasInput");
452 OWLObjectProperty hasResultVar = OP("urn:process#hasResultVar");
453 OWLObjectProperty hasOutput = OP("urn:process#hasOutput");
454 // expected hasLocal, hasInput, hasInput, hasResultVar,
455 // bottomObjectProperty
456 // actual__ hasOutput
457 equal(reasoner.getDisjointObjectProperties(hasOutput), hasLocal,
458 hasInput, hasInput1, hasResultVar, bottomObjectProperty);
459 }
460
461 @Test
462 @Ignore("disjoint properties not supported")
463 public void shouldPassgetDisjointDataPropertiesserviceProduct() {
464 OWLDataProperty valueForm = DP("urn:process#valueForm");
465 OWLDataProperty parameterValue = DP("urn:process#parameterValue");
466 OWLDataProperty valueFunction = DP("urn:process#valueFunction");
467 OWLDataProperty invocable = DP("urn:process#invocable");
468 OWLDataProperty serviceProduct = DP("urn:profile#serviceProduct");
469 // expected valueForm, parameterValue, bottomDataProperty,
470 // valueFunction, invocable
471 // actual__ serviceProduct
472 equal(reasoner.getDisjointDataProperties(serviceProduct), valueForm,
473 parameterValue, bottomDataProperty, valueFunction, invocable);
474 }
475
476 @Test
477 @Ignore("disjoint properties not supported")
478 public void shouldPassgetDisjointDataPropertiesserviceClassification() {
479 OWLDataProperty valueForm = DP("urn:process#valueForm");
480 OWLDataProperty parameterValue = DP("urn:process#parameterValue");
481 OWLDataProperty valueFunction = DP("urn:process#valueFunction");
482 OWLDataProperty invocable = DP("urn:process#invocable");
483 OWLDataProperty serviceClassification = DP("urn:profile#serviceClassification");
484 // expected valueForm, parameterValue, bottomDataProperty,
485 // valueFunction, invocable
486 // actual__ serviceClassification
487 equal(reasoner.getDisjointDataProperties(serviceClassification),
488 valueForm, parameterValue, bottomDataProperty, valueFunction,
489 invocable);
490 }
491
492 @Test
493 @Ignore("disjoint properties not supported")
494 public void shouldPassgetDisjointDataPropertiesrefURI() {
495 OWLDataProperty valueForm = DP("urn:process#valueForm");
496 OWLDataProperty parameterValue = DP("urn:process#parameterValue");
497 OWLDataProperty valueFunction = DP("urn:process#valueFunction");
498 OWLDataProperty invocable = DP("urn:process#invocable");
499 OWLDataProperty refURI = DP("urn:expr#refURI");
500 // expected valueForm, parameterValue, bottomDataProperty,
501 // valueFunction, invocable
502 // actual__ refURI
503 equal(reasoner.getDisjointDataProperties(refURI), valueForm,
504 parameterValue, bottomDataProperty, valueFunction, invocable);
505 }
506
507 @Test
508 @Ignore("disjoint properties not supported")
509 public void shouldPassgetDisjointDataPropertiesvalueFunction() {
510 OWLDataProperty serviceProduct = DP("urn:profile#serviceProduct");
511 OWLDataProperty serviceClassification = DP("urn:profile#serviceClassification");
512 OWLDataProperty refURI = DP("urn:expr#refURI");
513 OWLDataProperty valueType = DP("urn:process#valueType");
514 OWLDataProperty parameterType = DP("urn:process#parameterType");
515 OWLDataProperty invocable = DP("urn:process#invocable");
516 OWLDataProperty valueFunction = DP("urn:process#valueFunction");
517 // expected serviceProduct, serviceClassification, refURI,
518 // bottomDataProperty, valueType, parameterType, invocable
519 // actual__ valueFunction
520 equal(reasoner.getDisjointDataProperties(valueFunction),
521 serviceProduct, serviceClassification, refURI,
522 bottomDataProperty, valueType, parameterType, invocable);
523 }
524
525 @Test
526 @Ignore("disjoint properties not supported")
527 public void shouldPassgetDisjointDataPropertiesvalueType() {
528 OWLDataProperty valueForm = DP("urn:process#valueForm");
529 OWLDataProperty parameterValue = DP("urn:process#parameterValue");
530 OWLDataProperty valueFunction = DP("urn:process#valueFunction");
531 OWLDataProperty invocable = DP("urn:process#invocable");
532 OWLDataProperty valueType = DP("urn:process#valueType");
533 // expected valueForm, parameterValue, bottomDataProperty,
534 // valueFunction, invocable
535 // actual__ valueType
536 equal(reasoner.getDisjointDataProperties(valueType), valueForm,
537 parameterValue, bottomDataProperty, valueFunction, invocable);
538 }
539
540 @Test
541 @Ignore("disjoint properties not supported")
542 public void shouldPassgetDisjointDataPropertiesinvocable() {
543 OWLDataProperty serviceProduct = DP("urn:profile#serviceProduct");
544 OWLDataProperty valueForm = DP("urn:process#valueForm");
545 OWLDataProperty serviceClassification = DP("urn:profile#serviceClassification");
546 OWLDataProperty parameterValue = DP("urn:process#parameterValue");
547 OWLDataProperty refURI = DP("urn:expr#refURI");
548 OWLDataProperty valueFunction = DP("urn:process#valueFunction");
549 OWLDataProperty valueType = DP("urn:process#valueType");
550 OWLDataProperty parameterType = DP("urn:process#parameterType");
551 OWLDataProperty invocable = DP("urn:process#invocable");
552 // expected serviceProduct, valueForm, serviceClassification,
553 // parameterValue, refURI, bottomDataProperty, valueFunction, valueType,
554 // parameterType
555 // actual__ invocable
556 equal(reasoner.getDisjointDataProperties(invocable), serviceProduct,
557 valueForm, serviceClassification, parameterValue, refURI,
558 bottomDataProperty, valueFunction, valueType, parameterType);
559 }
560
561 @Test
562 @Ignore("disjoint properties not supported")
563 public void shouldPassgetDisjointDataPropertiesvalueForm() {
564 OWLDataProperty serviceProduct = DP("urn:profile#serviceProduct");
565 OWLDataProperty serviceClassification = DP("urn:profile#serviceClassification");
566 OWLDataProperty refURI = DP("urn:expr#refURI");
567 OWLDataProperty valueType = DP("urn:process#valueType");
568 OWLDataProperty parameterType = DP("urn:process#parameterType");
569 OWLDataProperty invocable = DP("urn:process#invocable");
570 OWLDataProperty valueForm = DP("urn:process#valueForm");
571 // expected serviceProduct, serviceClassification, refURI,
572 // bottomDataProperty, valueType, parameterType, invocable
573 // actual__ valueForm
574 equal(reasoner.getDisjointDataProperties(valueForm), serviceProduct,
575 serviceClassification, refURI, bottomDataProperty, valueType,
576 parameterType, invocable);
577 }
578
579 @Test
580 @Ignore("disjoint properties not supported")
581 public void shouldPassgetDisjointDataPropertiesparameterValue() {
582 OWLDataProperty serviceProduct = DP("urn:profile#serviceProduct");
583 OWLDataProperty serviceClassification = DP("urn:profile#serviceClassification");
584 OWLDataProperty refURI = DP("urn:expr#refURI");
585 OWLDataProperty valueType = DP("urn:process#valueType");
586 OWLDataProperty parameterType = DP("urn:process#parameterType");
587 OWLDataProperty invocable = DP("urn:process#invocable");
588 OWLDataProperty parameterValue = DP("urn:process#parameterValue");
589 // expected serviceProduct, serviceClassification, refURI,
590 // bottomDataProperty, valueType, parameterType, invocable
591 // actual__ parameterValue
592 equal(reasoner.getDisjointDataProperties(parameterValue),
593 serviceProduct, serviceClassification, refURI,
594 bottomDataProperty, valueType, parameterType, invocable);
595 }
596
597 @Test
598 @Ignore("disjoint properties not supported")
599 public void shouldPassgetDisjointDataPropertiesparameterType() {
600 OWLDataProperty valueForm = DP("urn:process#valueForm");
601 OWLDataProperty parameterValue = DP("urn:process#parameterValue");
602 OWLDataProperty valueFunction = DP("urn:process#valueFunction");
603 OWLDataProperty invocable = DP("urn:process#invocable");
604 OWLDataProperty parameterType = DP("urn:process#parameterType");
605 // expected valueForm, parameterValue, bottomDataProperty,
606 // valueFunction, invocable
607 // actual__ parameterType
608 equal(reasoner.getDisjointDataProperties(parameterType), valueForm,
609 parameterValue, bottomDataProperty, valueFunction, invocable);
610 }
611
612 @Test
613 @Ignore("disjoint properties not supported")
614 public void shouldPassgetDataPropertyValuesKIFrefURI() {
615 OWLNamedIndividual KIF = df.getOWLNamedIndividual(IRI
616 .create("urn:expr#KIF"));
617 OWLDataProperty refURI = DP("urn:expr#refURI");
618 // expected ["http://logic.stanford.edu/kif/kif.html"^^xsd:anyURI]
619 // actual__ KIF, refURI
620 assertEquals(
621 reasoner.getDataPropertyValues(KIF, refURI),
622 new HashSet<>(
623 Arrays.asList(df
624 .getOWLLiteral("http://logic.stanford.edu/kif/kif.html"))));
625 }
626
627 @Test
628 @Ignore("disjoint properties not supported")
629 public void shouldPassgetDataPropertyValuesDRSrefURI() {
630 OWLNamedIndividual DRS = df.getOWLNamedIndividual(IRI
631 .create("urn:expr#DRS"));
632 OWLDataProperty refURI = DP("urn:expr#refURI");
633 // expected
634 // ["http://www.daml.org/services/owl-s/1.1/generic/drs.owl"^^xsd:anyURI]
635 // actual__ DRS, refURI
636 assertEquals(
637 reasoner.getDataPropertyValues(DRS, refURI),
638 new HashSet<>(
639 Arrays.asList(df
640 .getOWLLiteral("http://www.daml.org/services/owl-s/1.1/generic/drs.owl"))));
641 }
642
643 @Test
644 @Ignore("disjoint properties not supported")
645 public void shouldPassgetDataPropertyValuesSWRLrefURI() {
646 OWLNamedIndividual SWRL = df.getOWLNamedIndividual(IRI
647 .create("urn:expr#SWRL"));
648 OWLDataProperty refURI = DP("urn:expr#refURI");
649 // expected ["http://www.w3.org/2003/11/swrl"^^xsd:anyURI]
650 // actual__ SWRL, refURI
651 assertEquals(
652 reasoner.getDataPropertyValues(SWRL, refURI),
653 new HashSet<>(Arrays.asList(df
654 .getOWLLiteral("http://www.w3.org/2003/11/swrl"))));
655 }
656
657 @Test
658 public void shouldPassgetObjectPropertyRangesisPresentedBytrue() {
659 OWLClass Service = C("http://www.daml.org/services/owl-s/1.1/Service.owl#Service");
660 OWLObjectProperty isPresentedBy = OP("urn:Service.owl#isPresentedBy");
661 // expected Service
662 // actual__ isPresentedBy, true
663 equal(reasoner.getObjectPropertyRanges(isPresentedBy, true), Service);
664 }
665 }