OWLDataFactory
Objective-C
@protocol OWLDataFactory <NSObject>
Swift
protocol OWLDataFactory : NSObjectProtocol
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
type
The type of the entity that will be returned.
iri
The 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 OWLClass that has the specified IRI.
Parameters
iri
The IRI.
Return Value
An OWLClass that has the specified IRI.
-
Gets an instance of OWLObjectProperty that has the specified IRI.
Declaration
Objective-C
- (nonnull id<OWLObjectProperty>)objectPropertyWithIRI:(nonnull OWLIRI *)iri;
Parameters
iri
The 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
iri
The 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
nodeID
The node ID.
Return Value
An instance of OWLAnonymousIndividual.
-
Gets the entity that has the specified identifier.
Declaration
Objective-C
- (nonnull id<OWLEntity>)entityWithID:(OWLEntityID)entityID;
Parameters
entityID
The identifier.
Return Value
An instance of OWLEntity.
-
Gets the class that has the specified identifier.
Declaration
Objective-C
- (nonnull id<OWLClass>)classWithEntityID:(OWLEntityID)entityID;
Parameters
entityID
The 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
entityID
The 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
entityID
The identifier.
Return Value
An instance of OWLObjectProperty.
-
Gets an instance of OWLObjectComplementOf.
Declaration
Objective-C
- (nonnull id<OWLObjectComplementOf>)objectComplementOf: (nonnull id<OWLClassExpression>)classExpression;
Parameters
classExpression
The 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
classExpressions
The 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
property
The property that the restriction acts along.
filler
The 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
property
The property that the restriction acts along.
filler
The 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
property
The property.
cardinality
The 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
property
The property.
cardinality
The cardinality (cannot be negative).
filler
The 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
property
The property.
cardinality
The 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
property
The property.
cardinality
The cardinality (cannot be negative).
filler
The 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
property
The property.
cardinality
The 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
property
The property.
cardinality
The cardinality (cannot be negative).
filler
The 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
entity
The 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
superClass
The superclass.
subClass
The 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
classExpressions
The 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
classExpressions
The 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
individual
The individual.
classExpression
The 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
subject
The subject individual.
property
The property.
object
The 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
property
The property.
domain
The 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
property
The property.
range
The range.
Return Value
An instance of OWLObjectPropertyRangeAxiom.
-
Gets an instance of OWLTransitiveObjectPropertyAxiom.
Declaration
Objective-C
- (nonnull id<OWLTransitiveObjectPropertyAxiom>)transitiveObjectPropertyAxiom: (nonnull id<OWLObjectPropertyExpression>)property;
Parameters
property
The property.
Return Value
An instance of OWLTransitiveObjectPropertyAxiom.