|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.clarkparsia.openrdf.util.ExpressionFactory
public final class ExpressionFactory
Factory for creating Expressions which are collections of RDF statements that are equivalent to the OWL axiom(s) they represent as
defined by the OWL2 to RDF mapping spec. Some distinctions are not exactly preserved, for example, this only provides a single method for the
AllValuesFrom axiom (#allUser) where in the spec there are separate axioms defined for DataAllValuesFrom & ObjectAllValuesFrom. If you need that level
of precision, you should use an OWL-centric API such as Ortiz. This class exists on an best effort basis to mirror the mappings defined in the spec
and still provide a simple RDF centric (and programmer friendly) interface.
Expression| Nested Class Summary | |
|---|---|
static class |
ExpressionFactory.ClassExpression
An expression about a class |
static class |
ExpressionFactory.Datatype
A datatype expression |
static class |
ExpressionFactory.Datatypes
Class which represents the various different datatypes |
static class |
ExpressionFactory.ExpressionList<T extends Expression>
Expression which represents an rdf:List of other expressions. |
static class |
ExpressionFactory.Facet
Enumeration of the possible facets for a ExpressionFactory.FacetRestriction on a ExpressionFactory.Datatype |
static class |
ExpressionFactory.FacetRestriction
A restriction on a facet of a datatype. |
static class |
ExpressionFactory.PropertyExpression
An expression about a property |
static class |
ExpressionFactory.RestrictedDatatype
A user-defined datatype which has facet restrictions placed on its value |
| Method Summary | |
|---|---|
static ExpressionFactory.ClassExpression |
all(ExpressionFactory.PropertyExpression theProperty,
Expression theResource)
Create a new AllValuesFrom expression |
static ExpressionFactory.ClassExpression |
all(ExpressionFactory.PropertyExpression theProperty,
Resource theResource)
Create a new AllValuesFrom expression |
static ExpressionFactory.ClassExpression |
all(URI theProperty,
Expression theResource)
Create a new AllValuesFrom expression |
static ExpressionFactory.ClassExpression |
all(URI theProperty,
Resource theResource)
Create a new AllValuesFrom expression |
static ExpressionFactory.ClassExpression |
and(ExpressionFactory.ClassExpression... theExpr)
Create an And (owl:intersectionOf) expression |
static ExpressionFactory.ClassExpression |
and(Resource... ex)
Create an And (owl:intersectionOf) expression |
static ExpressionFactory.PropertyExpression |
asymmetricProperty(URI theURI)
Create a new owl:AsymmetricProperty expression |
static ExpressionFactory.ClassExpression |
cardinality(URI theURI,
int theCard)
Create a new exact cardinality expression |
static ExpressionFactory.ClassExpression |
cardinality(URI theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
Create a new exact cardinality expression |
static ExpressionFactory.ClassExpression |
cardinality(URI theURI,
int theCard,
Resource theClass)
Create a new max cardinality expression |
static Expression |
classAssertion(Resource theIndividual,
Resource theClass)
Create a new ClassAssertion(iID, c) expression |
static ExpressionFactory.ClassExpression |
complementOf(Resource theRes)
Return a ComplementOf expression |
static ExpressionFactory.PropertyExpression |
dataProperty(URI theURI)
Create a DataProperty(theURI) expression |
static Expression |
declareClass(URI theURI)
Create a Declaration(OWLClass(theURI)) expression |
static Expression |
declareDataProperty(URI theURI)
Create a Declaration(DataProperty(theURI)) expression |
static Expression |
declareIndividual(Resource theResource)
Create a Declaration(Individual(theResource)) expression |
static Expression |
declareObjectProperty(URI theURI)
Create a Declaration(ObjectProperty(theURI)) expression |
static Expression |
differentIndividuals(Expression... theIndividuals)
Create a new DifferentIndividuals(iID(1) ... |
static Expression |
differentIndividuals(Resource... theIndividuals)
Create a new DifferentIndividuals(iID(1) ... |
static Expression |
disjointClasses(ExpressionFactory.ClassExpression... theClasses)
Create an DisjointClasses expression |
static Expression |
disjointClasses(Resource... theClasses)
Create an DisjointClasses expression |
static Expression |
disjointDataProperties(URI... theProperties)
Create a DisjointDataProperties(...) expression |
static Expression |
disjointObjectProperties(URI... theProperties)
Create a DisjointObjectProperties(...) expression |
static Expression |
domain(Expression theProperty,
Resource theClass)
Create a new domain expression |
static Expression |
domain(URI theProperty,
ExpressionFactory.ClassExpression theClass)
Create a new domain expression |
static Expression |
domain(URI theProperty,
Resource theClass)
Create a new domain expression |
static Expression |
equivalentClasses(ExpressionFactory.ClassExpression... theClasses)
Create an EquivalentClasses expression |
static Expression |
equivalentClasses(Resource... theClasses)
Create an EquivalentClasses expression |
static Expression |
equivalentProperties(Resource... theProperties)
Create an EquivalentProperties expression |
static Expression |
fromGraph(Graph theGraph)
Create an Expression directly from the provided graph. |
static Expression |
fromStatements(Iterable<Statement> theStatements)
Create an Expression directly from the provided set of statements. |
static ExpressionFactory.PropertyExpression |
functionalProperty(URI theURI)
Create a new owl:FunctionalProperty expression |
static ExpressionFactory.ClassExpression |
hasValue(URI theProperty,
Value theValue)
Create a new HasValue(...) expression |
static ExpressionFactory.PropertyExpression |
inverse(ExpressionFactory.PropertyExpression theProp)
Create a new owl:inverseObjectPropertyExpression expression |
static ExpressionFactory.PropertyExpression |
inverse(URI theProp)
Create a new owl:inverseObjectPropertyExpression expression |
static ExpressionFactory.PropertyExpression |
inverseFunctionalProperty(URI theURI)
Create a new owl:InverseFunctionalProperty expression |
static Expression |
inverseOf(ExpressionFactory.PropertyExpression theProperty,
ExpressionFactory.PropertyExpression theInverse)
Create a new inverseOf expression |
static Expression |
inverseOf(ExpressionFactory.PropertyExpression theProperty,
URI theInverse)
Create a new inverseOf expression |
static Expression |
inverseOf(URI theProperty,
ExpressionFactory.PropertyExpression theInverse)
Create a new inverseOf expression |
static Expression |
inverseOf(URI theProperty,
URI theInverse)
Create a new inverseOf expression |
static ExpressionFactory.PropertyExpression |
irreflexiveProperty(URI theURI)
Create a new owl:IrreflexiveProperty expression |
static ExpressionFactory.ClassExpression |
max(ExpressionFactory.PropertyExpression theURI,
int theCard)
Create a new max cardinality expression |
static ExpressionFactory.ClassExpression |
max(ExpressionFactory.PropertyExpression theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
Create a new max cardinality expression |
static ExpressionFactory.ClassExpression |
max(URI theURI,
int theCard)
Create a new max cardinality expression |
static ExpressionFactory.ClassExpression |
max(URI theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
Create a new max cardinality expression |
static ExpressionFactory.ClassExpression |
max(URI theURI,
int theCard,
Resource theClass)
Create a new max cardinality expression |
static ExpressionFactory.ClassExpression |
min(ExpressionFactory.PropertyExpression theURI,
int theCard)
Create a new min cardinality expression |
static ExpressionFactory.ClassExpression |
min(ExpressionFactory.PropertyExpression theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
Create a new min cardinality expression |
static ExpressionFactory.ClassExpression |
min(URI theURI,
int theCard)
Create a new min cardinality expression |
static ExpressionFactory.ClassExpression |
min(URI theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
Create a new min cardinality expression |
static ExpressionFactory.ClassExpression |
min(URI theURI,
int theCard,
Resource theClass)
Create a new min cardinality expression |
static ExpressionFactory.ClassExpression |
namedClass(URI theURI)
Create a new named class |
static Expression |
negativeDataPropertyAssertion(Resource theSubject,
URI thePredicate,
Value theObject)
Create a new NegativeDataPropertyAssertion |
static Expression |
negativeObjectPropertyAssertion(Resource theSubject,
URI thePredicate,
Value theObject)
Create a new NegativeObjectPropertyAssertion |
static ExpressionFactory.PropertyExpression |
objectProperty(URI theURI)
Create a ObjectProperty(theURI) expression |
static ExpressionFactory.ClassExpression |
or(ExpressionFactory.ClassExpression... theExpr)
Create an Or (owl:unionOf) expression |
static ExpressionFactory.ClassExpression |
or(Resource... ex)
Create an Or (owl:unionOf) expression |
static ExpressionFactory.ExpressionList<ExpressionFactory.PropertyExpression> |
propertyList(ExpressionFactory.PropertyExpression... theExpr)
Create a new property list |
static ExpressionFactory.ExpressionList<ExpressionFactory.PropertyExpression> |
propertyList(URI... theProps)
Create a new property list |
static Expression |
range(ExpressionFactory.PropertyExpression theProperty,
Resource theClass)
Create a new range expression |
static Expression |
range(URI theProperty,
ExpressionFactory.ClassExpression theClass)
Create a new range expression |
static Expression |
range(URI theProperty,
Resource theClass)
Create a new range expression |
static ExpressionFactory.PropertyExpression |
reflexiveProperty(URI theURI)
Create a new owl:ReflexiveProperty expression |
static ExpressionFactory.RestrictedDatatype |
restrict(ExpressionFactory.Datatype theDatatype,
ExpressionFactory.FacetRestriction... theRestrictions)
Create a new RestrictedDatatype |
static Expression |
sameIndividuals(Resource... theIndividuals)
Create a new SameIndividual(iID(1) ... |
static ExpressionFactory.ClassExpression |
some(ExpressionFactory.PropertyExpression theProperty,
Expression theResource)
Create a new SomeValuesFrom expression |
static ExpressionFactory.ClassExpression |
some(URI theProperty,
Expression theResource)
Create a new SomeValuesFrom expression |
static ExpressionFactory.ClassExpression |
some(URI theProperty,
Resource theResource)
Create a new SomeValuesFrom expression |
static Expression |
subClassOf(ExpressionFactory.ClassExpression sub,
ExpressionFactory.ClassExpression sup)
Create a new subClassOf expression |
static Expression |
subClassOf(ExpressionFactory.ClassExpression sub,
Resource sup)
Create a new subClassOf expression |
static Expression |
subClassOf(Resource sub,
ExpressionFactory.ClassExpression sup)
Create a new subClassOf expression |
static Expression |
subClassOf(Resource sub,
Resource sup)
Create a new subClassOf expression |
static Expression |
subPropertyOf(ExpressionFactory.ExpressionList<ExpressionFactory.PropertyExpression> theList,
ExpressionFactory.PropertyExpression theProperty)
Create a new subPropertyOf expression for a property chain axiom. |
static Expression |
subPropertyOf(ExpressionFactory.PropertyExpression theSub,
ExpressionFactory.PropertyExpression theSuper)
Create a new subClassOf expression |
static Expression |
subPropertyOf(ExpressionFactory.PropertyExpression theSub,
URI theSuper)
Create a new subPropertyOf expression |
static Expression |
subPropertyOf(URI theSub,
ExpressionFactory.PropertyExpression theSuper)
Create a new subClassOf expression |
static Expression |
subPropertyOf(URI theSub,
URI theSuper)
Create a new subPropertyOf expression |
static ExpressionFactory.PropertyExpression |
symmetricProperty(URI theURI)
Create a new owl:SymmetricProperty expression |
static ExpressionFactory.PropertyExpression |
transitiveProperty(URI theURI)
Create a new owl:TransitiveProperty expression |
static Expression |
type(Resource theInd,
ExpressionFactory.ClassExpression theClass)
Create a new type assertion expression |
static Expression |
type(Resource theInd,
URI theClass)
Create a new type assertion expression |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Expression type(Resource theInd,
URI theClass)
theInd - the individualtheClass - the type of the individual
public static Expression type(Resource theInd,
ExpressionFactory.ClassExpression theClass)
theInd - the individualtheClass - the type of the individual
public static Expression fromGraph(Graph theGraph)
theGraph - the graph of statements corresponding to one or more axioms.
public static Expression fromStatements(Iterable<Statement> theStatements)
theStatements - the collection of statements corresponding to one or more axioms.
public static ExpressionFactory.ClassExpression namedClass(URI theURI)
theURI - the URI of the class
public static ExpressionFactory.PropertyExpression transitiveProperty(URI theURI)
theURI - the property URI
public static ExpressionFactory.PropertyExpression reflexiveProperty(URI theURI)
theURI - the property URI
public static ExpressionFactory.PropertyExpression irreflexiveProperty(URI theURI)
theURI - the property URI
public static ExpressionFactory.PropertyExpression symmetricProperty(URI theURI)
theURI - the property URI
public static ExpressionFactory.PropertyExpression asymmetricProperty(URI theURI)
theURI - the property URI
public static ExpressionFactory.PropertyExpression functionalProperty(URI theURI)
theURI - the property URI
public static ExpressionFactory.PropertyExpression inverseFunctionalProperty(URI theURI)
theURI - the property URI
public static ExpressionFactory.PropertyExpression inverse(URI theProp)
theProp - the property to state the inverse expression about
public static ExpressionFactory.PropertyExpression inverse(ExpressionFactory.PropertyExpression theProp)
theProp - the property to state the inverse expression about
public static Expression subClassOf(Resource sub,
Resource sup)
sub - the subclasssup - the super class
public static Expression subClassOf(ExpressionFactory.ClassExpression sub,
ExpressionFactory.ClassExpression sup)
sub - the subclasssup - the super class
public static Expression subClassOf(ExpressionFactory.ClassExpression sub,
Resource sup)
sub - the subclasssup - the super class
public static Expression subClassOf(Resource sub,
ExpressionFactory.ClassExpression sup)
sub - the subclasssup - the super class
public static Expression range(URI theProperty,
Resource theClass)
theProperty - the propertytheClass - the range of the property
public static Expression range(ExpressionFactory.PropertyExpression theProperty,
Resource theClass)
theProperty - the propertytheClass - the range of the property
public static Expression range(URI theProperty,
ExpressionFactory.ClassExpression theClass)
theProperty - the propertytheClass - the range of the property
public static Expression domain(URI theProperty,
Resource theClass)
theProperty - the propertytheClass - the domain of the property
public static Expression domain(Expression theProperty,
Resource theClass)
theProperty - the propertytheClass - the domain of the property
public static Expression domain(URI theProperty,
ExpressionFactory.ClassExpression theClass)
theProperty - the propertytheClass - the domain of the property
public static ExpressionFactory.ClassExpression some(URI theProperty,
Resource theResource)
theProperty - the propertytheResource - the value restriction
public static ExpressionFactory.ClassExpression some(URI theProperty,
Expression theResource)
theProperty - the propertytheResource - the value restriction
public static ExpressionFactory.ClassExpression some(ExpressionFactory.PropertyExpression theProperty,
Expression theResource)
theProperty - the property expressiontheResource - the value restriction
public static ExpressionFactory.ClassExpression all(URI theProperty,
Resource theResource)
theProperty - the propertytheResource - the value restriction
public static ExpressionFactory.ClassExpression all(ExpressionFactory.PropertyExpression theProperty,
Resource theResource)
theProperty - the property expressiontheResource - the value restriction
public static ExpressionFactory.ClassExpression all(URI theProperty,
Expression theResource)
theProperty - the propertytheResource - the value restriction
public static ExpressionFactory.ClassExpression all(ExpressionFactory.PropertyExpression theProperty,
Expression theResource)
theProperty - the propertytheResource - the value restriction
public static ExpressionFactory.ClassExpression hasValue(URI theProperty,
Value theValue)
theProperty - the propertytheValue - the value of the property
public static ExpressionFactory.ClassExpression min(URI theURI,
int theCard)
theURI - the property the cardinality applies totheCard - the min cardinality
public static ExpressionFactory.ClassExpression min(URI theURI,
int theCard,
Resource theClass)
theURI - the property the cardinality applies totheCard - the min cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression min(URI theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
theURI - the property the cardinality applies totheCard - the min cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression min(ExpressionFactory.PropertyExpression theURI,
int theCard)
theURI - the property the cardinality applies totheCard - the min cardinality
public static ExpressionFactory.ClassExpression min(ExpressionFactory.PropertyExpression theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
theURI - the property the cardinality applies totheCard - the min cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression max(ExpressionFactory.PropertyExpression theURI,
int theCard)
theURI - the property the cardinality applies totheCard - the max cardinality
public static ExpressionFactory.ClassExpression max(ExpressionFactory.PropertyExpression theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
theURI - the property the cardinality applies totheCard - the max cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression max(URI theURI,
int theCard)
theURI - the property the cardinality applies totheCard - the max cardinality
public static ExpressionFactory.ClassExpression max(URI theURI,
int theCard,
Resource theClass)
theURI - the property the cardinality applies totheCard - the max cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression max(URI theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
theURI - the property the cardinality applies totheCard - the max cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression cardinality(URI theURI,
int theCard)
theURI - the property the cardinality applies totheCard - the exact cardinality
public static ExpressionFactory.ClassExpression cardinality(URI theURI,
int theCard,
Resource theClass)
theURI - the property the cardinality applies totheCard - the max cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression cardinality(URI theURI,
int theCard,
ExpressionFactory.ClassExpression theClass)
theURI - the property the cardinality applies totheCard - the exact cardinalitytheClass - the class the restriction applies to
public static ExpressionFactory.ClassExpression or(ExpressionFactory.ClassExpression... theExpr)
theExpr - the values in the Or
public static ExpressionFactory.ClassExpression or(Resource... ex)
ex - the values in the Or
public static ExpressionFactory.ClassExpression and(ExpressionFactory.ClassExpression... theExpr)
theExpr - the values in the And
public static ExpressionFactory.ClassExpression and(Resource... ex)
ex - the values in the And
public static ExpressionFactory.ClassExpression complementOf(Resource theRes)
theRes - the complement
public static Expression disjointClasses(ExpressionFactory.ClassExpression... theClasses)
theClasses - the values which are disjoint
public static Expression disjointClasses(Resource... theClasses)
theClasses - the values which are disjoint
public static Expression equivalentClasses(ExpressionFactory.ClassExpression... theClasses)
theClasses - the values which are equivalent
public static Expression equivalentClasses(Resource... theClasses)
theClasses - the values which are equivalent
public static Expression equivalentProperties(Resource... theProperties)
theProperties - the values which are equivalent
public static Expression classAssertion(Resource theIndividual,
Resource theClass)
theIndividual - the individualtheClass - the class
public static Expression differentIndividuals(Resource... theIndividuals)
theIndividuals - the individuals
public static Expression differentIndividuals(Expression... theIndividuals)
theIndividuals - the individuals
public static Expression disjointDataProperties(URI... theProperties)
theProperties - the disjoint properties
public static Expression disjointObjectProperties(URI... theProperties)
theProperties - the disjoint properties
public static Expression sameIndividuals(Resource... theIndividuals)
theIndividuals - the individuals
public static Expression negativeObjectPropertyAssertion(Resource theSubject,
URI thePredicate,
Value theObject)
theSubject - the subject of the assertionthePredicate - the predicate of the assertiontheObject - the object of the assertion
public static Expression negativeDataPropertyAssertion(Resource theSubject,
URI thePredicate,
Value theObject)
theSubject - the subject of the assertionthePredicate - the predicate of the assertiontheObject - the object of the assertion
public static ExpressionFactory.PropertyExpression dataProperty(URI theURI)
theURI - the the resource
public static ExpressionFactory.PropertyExpression objectProperty(URI theURI)
theURI - the the resource
public static Expression declareClass(URI theURI)
theURI - the the resource
public static Expression declareObjectProperty(URI theURI)
theURI - the the resource
public static Expression declareDataProperty(URI theURI)
theURI - the the resource
public static Expression declareIndividual(Resource theResource)
theResource - the the resource
public static Expression subPropertyOf(ExpressionFactory.ExpressionList<ExpressionFactory.PropertyExpression> theList,
ExpressionFactory.PropertyExpression theProperty)
theList - the property listtheProperty - the property
public static Expression subPropertyOf(URI theSub,
URI theSuper)
theSub - the sub propertytheSuper - the super property
public static Expression subPropertyOf(ExpressionFactory.PropertyExpression theSub,
ExpressionFactory.PropertyExpression theSuper)
theSub - the sub propertytheSuper - the super property
public static ExpressionFactory.ExpressionList<ExpressionFactory.PropertyExpression> propertyList(URI... theProps)
theProps - the properties in the list
public static ExpressionFactory.ExpressionList<ExpressionFactory.PropertyExpression> propertyList(ExpressionFactory.PropertyExpression... theExpr)
theExpr - the properties in the list
public static Expression subPropertyOf(ExpressionFactory.PropertyExpression theSub,
URI theSuper)
theSub - the sub propertytheSuper - the super property
public static Expression subPropertyOf(URI theSub,
ExpressionFactory.PropertyExpression theSuper)
theSub - the sub propertytheSuper - the super property
public static Expression inverseOf(URI theProperty,
URI theInverse)
theProperty - the propertytheInverse - the inverse property
public static Expression inverseOf(ExpressionFactory.PropertyExpression theProperty,
ExpressionFactory.PropertyExpression theInverse)
theProperty - the propertytheInverse - the inverse property
public static Expression inverseOf(ExpressionFactory.PropertyExpression theProperty,
URI theInverse)
theProperty - the propertytheInverse - the inverse property
public static Expression inverseOf(URI theProperty,
ExpressionFactory.PropertyExpression theInverse)
theProperty - the propertytheInverse - the inverse property
public static ExpressionFactory.RestrictedDatatype restrict(ExpressionFactory.Datatype theDatatype,
ExpressionFactory.FacetRestriction... theRestrictions)
theDatatype - the datatypetheRestrictions - the restrictions on the datatype
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||