public abstract class AbstractProfile extends Object implements Profile
Abstract base class to provide shared implementation for ontology language profiles.
| Constructor and Description |
|---|
AbstractProfile() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsSome(EnhGraph g,
Node n,
Property p)
Utility method: answer true iff the enhanced graph contains some triple which
has n as subject, p.asNode() as predicate, and any object.
|
Resource |
getAliasFor(Resource res)
Answer an alias for the given resource.
|
boolean |
hasAliasFor(Resource res)
Answer true if the given resource has an alias in this profile.
|
Iterator<Resource> |
listAliasesFor(Resource res)
Answer an iterator over the defined aliases for a resource.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitALL_DIFFERENT, ALL_VALUES_FROM, ANNOTATION_PROPERTY, BACKWARD_COMPATIBLE_WITH, CARDINALITY_Q, CARDINALITY, CLASS, COMMENT, COMPLEMENT_OF, DATARANGE, DATATYPE_PROPERTY, DEPRECATED_CLASS, DEPRECATED_PROPERTY, DIFFERENT_FROM, DISJOINT_WITH, DISTINCT_MEMBERS, DOMAIN, EQUIVALENT_CLASS, EQUIVALENT_PROPERTY, FIRST, FUNCTIONAL_PROPERTY, getAnnotationProperties, getAxiomTypes, getClassDescriptionTypes, getLabel, HAS_CLASS_Q, HAS_VALUE, IMPORTS, INCOMPATIBLE_WITH, INTERSECTION_OF, INVERSE_FUNCTIONAL_PROPERTY, INVERSE_OF, IS_DEFINED_BY, isSupported, LABEL, LIST, MAX_CARDINALITY_Q, MAX_CARDINALITY, MIN_CARDINALITY_Q, MIN_CARDINALITY, NAMESPACE, NIL, NOTHING, OBJECT_PROPERTY, ON_PROPERTY, ONE_OF, ONTOLOGY_PROPERTY, ONTOLOGY, PRIOR_VERSION, PROPERTY, RANGE, REST, RESTRICTION, SAME_AS, SAME_INDIVIDUAL_AS, SEE_ALSO, SOME_VALUES_FROM, SUB_CLASS_OF, SUB_PROPERTY_OF, SYMMETRIC_PROPERTY, THING, TRANSITIVE_PROPERTY, UNION_OF, VERSION_INFOpublic boolean hasAliasFor(Resource res)
Answer true if the given resource has an alias in this profile.
hasAliasFor in interface Profileres - A resource (including properties) to test for an aliasrespublic Resource getAliasFor(Resource res)
Answer an alias for the given resource. If there is more than one such alias, a choice is made non-deterministically between the alternatives.
getAliasFor in interface Profileres - A resource (including properties) to test for an aliasres, or one of the aliases for res if more
than one is defined, or null if no alias is defined for res.public Iterator<Resource> listAliasesFor(Resource res)
Answer an iterator over the defined aliases for a resource.
listAliasesFor in interface Profileres - A resource (including properties)res. If there are
no aliases, the empty iterator is returned.public static boolean containsSome(EnhGraph g, Node n, Property p)
g - an enhanced graph to search for triplesn - some nodep - a property containing a predicate nodeLicenced under the Apache License, Version 2.0