OWLDataFactory
@protocol OWLDataFactory <NSObject>
An interface for creating entities, class expressions and axioms.
-
Gets the built in owl:Thing class.
Declaration
Objective-C
- (nonnull id<OWLClass>)thing;Return Value
OWLClass corresponding to owl:Thing.
-
Gets the built in owl:Nothing class.
Declaration
Objective-C
- (nonnull id<OWLClass>)nothing;Return Value
OWLClass corresponding to owl:Nothing.
-
Gets the built in owl:topObjectProperty class.
Declaration
Objective-C
- (nonnull id<OWLObjectProperty>)topObjectProperty;Return Value
OWLObjectProperty corresponding to owl:topObjectProperty.
-
Gets the built in owl:bottomObjectProperty class.
Declaration
Objective-C
- (nonnull id<OWLObjectProperty>)bottomObjectProperty;Return Value
OWLObjectProperty corresponding to owl:bottomObjectProperty.
-
Gets an entity that has the specified IRI and is of the specified type.
Declaration
Objective-C
- (nonnull id<OWLEntity>)entityWithType:(OWLEntityType)type iri:(nonnull OWLIRI *)iri;Parameters
typeThe type of the entity that will be returned.
iriThe IRI of the entity that will be returned.
Return Value
An entity that has the same IRI as this entity and is of the specified type.
-
Gets an instance of OWLObjectProperty that has the specified IRI.
Declaration
Objective-C
- (nonnull id<OWLObjectProperty>)objectPropertyWithIRI:(nonnull OWLIRI *)iri;Parameters
iriThe IRI.
Return Value
An OWLObjectProperty that has the specified IRI.
-
Gets an instance of OWLNamedIndividual that has the specified IRI.
Declaration
Objective-C
- (nonnull id<OWLNamedIndividual>)namedIndividualWithIRI:(nonnull OWLIRI *)iri;Parameters
iriThe IRI.
Return Value
An OWLNamedIndividual that has the specified IRI.
-
Gets an OWLAnonymousIndividual. The NodeID for the individual will be generated automatically. Successive invocations of this method (on this object) will result in instances of OWLAnonymousIndividual that do not have NodeIDs that have been used previously.
Declaration
Objective-C
- (nonnull id<OWLAnonymousIndividual>)anonymousIndividual;Return Value
An instance of OWLAnonymousIndividual.
-
Gets an OWLAnonymousIndividual that has a specific NodeID.
Declaration
Objective-C
- (nonnull id<OWLAnonymousIndividual>)anonymousIndividualWithNodeID: (OWLNodeID)nodeID;Parameters
nodeIDThe node ID.
Return Value
An instance of OWLAnonymousIndividual.
-
Gets the class that has the specified identifier.
Declaration
Objective-C
- (nonnull id<OWLClass>)classWithEntityID:(OWLEntityID)entityID;Parameters
entityIDThe identifier;
Return Value
An instance of OWLClass.
-
Gets the named individual that has the specified identifier.
Declaration
Objective-C
- (nonnull id<OWLNamedIndividual>)namedIndividualWithEntityID: (OWLEntityID)entityID;Parameters
entityIDThe identifier;
Return Value
An instance of OWLNamedIndividual.
-
Gets the object property that has the specified identifier.
Declaration
Objective-C
- (nonnull id<OWLObjectProperty>)objectPropertyWithEntityID: (OWLEntityID)entityID;Parameters
entityIDThe identifier;
Return Value
An instance of OWLObjectProperty.
-
Gets an instance of OWLObjectComplementOf.
Declaration
Objective-C
- (nonnull id<OWLObjectComplementOf>)objectComplementOf: (nonnull id<OWLClassExpression>)classExpression;Parameters
classExpressionThe class expression to complement.
Return Value
An instance of OWLObjectComplementOf.
-
Gets an instance of OWLObjectIntersectionOf.
Declaration
Objective-C
- (nonnull id<OWLObjectIntersectionOf>)objectIntersectionOf: (nonnull NSSet<id<OWLClassExpression>> *)classExpressions;Parameters
classExpressionsThe class expressions to intersect.
Return Value
An instance of OWLObjectIntersectionOf.
-
Gets an instance of OWLObjectAllValuesFrom.
Declaration
Objective-C
- (nonnull id<OWLObjectAllValuesFrom>) objectAllValuesFrom:(nonnull id<OWLObjectPropertyExpression>)property filler:(nonnull id<OWLClassExpression>)filler;Parameters
propertyThe property that the restriction acts along.
fillerThe filler of the restriction.
Return Value
An instance of OWLObjectAllValuesFrom.
-
Gets an instance of OWLObjectSomeValuesFrom.
Declaration
Objective-C
- (nonnull id<OWLObjectSomeValuesFrom>) objectSomeValuesFrom:(nonnull id<OWLObjectPropertyExpression>)property filler:(nonnull id<OWLClassExpression>)filler;Parameters
propertyThe property that the restriction acts along.
fillerThe filler of the restriction.
Return Value
An instance of OWLObjectSomeValuesFrom.
-
Gets an instance of OWLObjectExactCardinality (non-qualified).
Declaration
Objective-C
- (nonnull id<OWLObjectExactCardinality>) objectExactCardinality:(nonnull id<OWLObjectPropertyExpression>)property cardinality:(NSUInteger)cardinality;Parameters
propertyThe property.
cardinalityThe cardinality (cannot be negative).
Return Value
An instance of OWLObjectExactCardinality.
-
Gets an instance of OWLObjectExactCardinality (qualified).
Declaration
Objective-C
- (nonnull id<OWLObjectExactCardinality>) objectExactCardinality:(nonnull id<OWLObjectPropertyExpression>)property cardinality:(NSUInteger)cardinality filler:(nonnull id<OWLClassExpression>)filler;Parameters
propertyThe property.
cardinalityThe cardinality (cannot be negative).
fillerThe filler.
Return Value
An instance of OWLObjectExactCardinality.
-
Gets an instance of OWLObjectMaxCardinality (non-qualified).
Declaration
Objective-C
- (nonnull id<OWLObjectMaxCardinality>) objectMaxCardinality:(nonnull id<OWLObjectPropertyExpression>)property cardinality:(NSUInteger)cardinality;Parameters
propertyThe property.
cardinalityThe cardinality (cannot be negative).
Return Value
An instance of OWLObjectMaxCardinality.
-
Gets an instance of OWLObjectMaxCardinality (qualified).
Declaration
Objective-C
- (nonnull id<OWLObjectMaxCardinality>) objectMaxCardinality:(nonnull id<OWLObjectPropertyExpression>)property cardinality:(NSUInteger)cardinality filler:(nonnull id<OWLClassExpression>)filler;Parameters
propertyThe property.
cardinalityThe cardinality (cannot be negative).
fillerThe filler.
Return Value
An instance of OWLObjectMaxCardinality.
-
Gets an instance of OWLObjectMinCardinality (non-qualified).
Declaration
Objective-C
- (nonnull id<OWLObjectMinCardinality>) objectMinCardinality:(nonnull id<OWLObjectPropertyExpression>)property cardinality:(NSUInteger)cardinality;Parameters
propertyThe property.
cardinalityThe cardinality (cannot be negative).
Return Value
An instance of OWLObjectMinCardinality.
-
Gets an instance of OWLObjectMinCardinality (qualified).
Declaration
Objective-C
- (nonnull id<OWLObjectMinCardinality>) objectMinCardinality:(nonnull id<OWLObjectPropertyExpression>)property cardinality:(NSUInteger)cardinality filler:(nonnull id<OWLClassExpression>)filler;Parameters
propertyThe property.
cardinalityThe cardinality (cannot be negative).
fillerThe filler.
Return Value
An instance of OWLObjectMinCardinality.
-
Gets a declaration for an entity.
Declaration
Objective-C
- (nonnull id<OWLDeclarationAxiom>)declarationAxiom: (nonnull id<OWLEntity>)entity;Parameters
entityThe declared entity.
Return Value
The declaration axiom for the specified entity.
-
Gets an instance of OWLSubClassOfAxiom.
Declaration
Objective-C
- (nonnull id<OWLSubClassOfAxiom>) subClassOfAxiom:(nonnull id<OWLClassExpression>)superClass subClass:(nonnull id<OWLClassExpression>)subClass;Parameters
superClassThe superclass.
subClassThe subclass.
Return Value
An instance of OWLSubClassOfAxiom.
-
Gets an instance of OWLDisjointClassesAxiom.
Declaration
Objective-C
- (nonnull id<OWLDisjointClassesAxiom>)disjointClassesAxiom: (nonnull NSSet<id<OWLClassExpression>> *)classExpressions;Parameters
classExpressionsThe disjoint classes.
Return Value
An instance of OWLDisjointClassesAxiom.
-
Gets an instance of OWLEquivalentClassesAxiom.
Declaration
Objective-C
- (nonnull id<OWLEquivalentClassesAxiom>)equivalentClassesAxiom: (nonnull NSSet<id<OWLClassExpression>> *)classExpressions;Parameters
classExpressionsThe equivalent classes.
Return Value
An instance of OWLEquivalentClassesAxiom.
-
Gets an instance of OWLClassAssertionAxiom.
Declaration
Objective-C
- (nonnull id<OWLClassAssertionAxiom>) classAssertionAxiom:(nonnull id<OWLIndividual>)individual classExpression:(nonnull id<OWLClassExpression>)classExpression;Parameters
individualThe individual.
classExpressionThe class expression.
Return Value
An instance of OWLClassAssertionAxiom.
-
Gets an instance of OWLObjectPropertyAssertionAxiom.
Declaration
Objective-C
- (nonnull id<OWLObjectPropertyAssertionAxiom>) objectPropertyAssertionAxiom:(nonnull id<OWLIndividual>)subject property: (nonnull id<OWLObjectPropertyExpression>)property object:(nonnull id<OWLIndividual>)object;Parameters
subjectThe subject individual.
propertyThe property.
objectThe object individual.
Return Value
An instance of OWLObjectPropertyAssertionAxiom.
-
Gets an instance of OWLObjectPropertyDomainAxiom.
Declaration
Objective-C
- (nonnull id<OWLObjectPropertyDomainAxiom>) objectPropertyDomainAxiom:(nonnull id<OWLObjectPropertyExpression>)property domain:(nonnull id<OWLClassExpression>)domain;Parameters
propertyThe property.
domainThe domain.
Return Value
An instance of OWLObjectPropertyDomainAxiom.
-
Gets an instance of OWLObjectPropertyRangeAxiom.
Declaration
Objective-C
- (nonnull id<OWLObjectPropertyRangeAxiom>) objectPropertyRangeAxiom:(nonnull id<OWLObjectPropertyExpression>)property range:(nonnull id<OWLClassExpression>)range;Parameters
propertyThe property.
rangeThe range.
Return Value
An instance of OWLObjectPropertyRangeAxiom.
-
Gets an instance of OWLTransitiveObjectPropertyAxiom.
Declaration
Objective-C
- (nonnull id<OWLTransitiveObjectPropertyAxiom>)transitiveObjectPropertyAxiom: (nonnull id<OWLObjectPropertyExpression>)property;Parameters
propertyThe property.
Return Value
An instance of OWLTransitiveObjectPropertyAxiom.
OWLDataFactory Protocol Reference