|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSWAPPredicate
Represents an RDF predicate in SSWAP. Predicates are distinct from
properties, in that a predicate refers to the term itself, while a property
is an instance of a predicate on an individual with an associated value (see
SSWAPProperty
). A SSWAPPredicate
contains global
statements, along with methods to manipulate
owl:DatatypeProperty
or owl:ObjectProperty
definitions (e.g., adding their domains, ranges etc.).
Usually, a SSWAPPredicate
is not created de novo; it is
read from the Internet via SSWAPDocument.getPredicate(java.net.URI)
.
SSWAPDocument
,
SSWAPProperty
Method Summary | |
---|---|
void |
addAnnotationPredicate(SSWAPPredicate predicate,
SSWAPElement value)
Annotates a predicate with the given annotation predicate. |
void |
addDomain(SSWAPType type)
Adds an rdfs:domain axiom to this predicate |
void |
addEquivalentPredicate(SSWAPPredicate predicate)
Adds an owl:equivalentProperty axiom to this predicate |
void |
addInverseOf(SSWAPPredicate predicate)
Adds owl:inverseOf axiom to this predicate |
void |
addRange(SSWAPDatatype datatype)
Adds an rdfs:range axiom to this predicate |
void |
addRange(SSWAPType type)
Adds an rdfs:range axiom to this predicate |
void |
addSubPredicateOf(SSWAPPredicate predicate)
Adds an rdfs:subPropertyOf axiom to this type |
void |
addType(SSWAPType type)
Adds the type information to this property (i.e., whether this is a DatatypeProperty, an ObjectProperty, FunctionalProperty, InverseProperty etc.) |
java.lang.String |
getDatatypePredicateRange()
Gets the datatype for the range for a datatype predicate. |
java.util.Collection<java.lang.String> |
getDatatypePredicateRanges()
Gets all the datatypes for the range for a datatype predicate. |
SSWAPType |
getDomain()
Retrieves information about the domain of the specified predicate. |
SSWAPType |
getObjectPredicateRange()
Gets the type for the range for an object predicate. |
java.util.Collection<SSWAPType> |
getObjectPredicateRanges()
Gets all the types for the range for an object predicate. |
boolean |
isAnnotationPredicate()
Checks whether the given predicate is defined as an annotation predicate |
boolean |
isDatatypePredicate()
Checks whether the given predicate is defined as a datatype predicate |
boolean |
isObjectPredicate()
Checks whether the given predicate is defined as an object predicate |
boolean |
isReserved()
Checks whether the given predicate belongs to restricted vocabulary (e.g., predicates defined in RDF, RDFS, OWL or SSWAP namespaces). |
boolean |
isStrictSubPredicateOf(SSWAPPredicate sup)
Checks whether this predicate is a strict sub predicate of the other. |
boolean |
isSubPredicateOf(SSWAPPredicate sup)
Checks whether this predicate is a sub predicate of other. |
Methods inherited from interface info.sswap.api.model.SSWAPElement |
---|
addComment, addLabel, asBoolean, asDouble, asIndividual, asInteger, asList, asLiteral, asString, getComment, getLabel, isIndividual, isList, isLiteral |
Methods inherited from interface info.sswap.api.model.SSWAPModel |
---|
addImport, checkProfile, dereference, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
Method Detail |
---|
void addType(SSWAPType type)
type
- the type to be added.void addSubPredicateOf(SSWAPPredicate predicate)
predicate
- the super predicate typevoid addDomain(SSWAPType type)
type
- the domain of this predicatevoid addRange(SSWAPType type)
type
- the domain of this predicatevoid addRange(SSWAPDatatype datatype)
datatype
- the domain of this predicatevoid addEquivalentPredicate(SSWAPPredicate predicate)
predicate
- the other equivalent predicatevoid addInverseOf(SSWAPPredicate predicate)
predicate
- the inverse predicate to this onevoid addAnnotationPredicate(SSWAPPredicate predicate, SSWAPElement value)
predicate
- the predicate to be used in annotationboolean isSubPredicateOf(SSWAPPredicate sup)
sup
- the potential super predicate
boolean isStrictSubPredicateOf(SSWAPPredicate sup)
sup
- the potential strict super predicate
SSWAPType getObjectPredicateRange() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if this predicate is not an object predicatejava.util.Collection<SSWAPType> getObjectPredicateRanges() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if this predicate is not an object predicatejava.lang.String getDatatypePredicateRange() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if this predicate is not a datatype predicatejava.util.Collection<java.lang.String> getDatatypePredicateRanges() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if this predicate is not a datatype predicateSSWAPType getDomain()
boolean isObjectPredicate()
boolean isDatatypePredicate()
boolean isAnnotationPredicate()
boolean isReserved()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |