| java.lang.Object com.hp.hpl.jena.ontology.impl.AbstractProfile
All known Subclasses: com.hp.hpl.jena.ontology.impl.DAML_OILProfile, com.hp.hpl.jena.ontology.impl.DAML_OILLegacyProfile, com.hp.hpl.jena.ontology.impl.RDFSProfile, com.hp.hpl.jena.ontology.impl.OWLProfile,
AbstractProfile | abstract public class AbstractProfile implements Profile(Code) | |
Abstract base class to provide shared implementation for ontology language profiles.
author: Ian Dickinson, HP Labs author: (email) version: CVS $Id: AbstractProfile.java,v 1.10 2008/01/02 12:08:03 andy_seaborne Exp $ |
Method Summary | |
protected OneToManyMap | aliasMap()
Prepare the local alias map by reading the alias table from the concrete sub-class. | abstract protected Resource[][] | aliasTable() Answer a table of binary mappings denoting that one resource is the
alias for another (for example daml:Class and rdfs:Class). | public 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. | public Resource | getAliasFor(Resource res)
Answer an alias for the given resource. | public boolean | hasAliasFor(Resource res)
Answer true if the given resource has an alias in this profile. | public Iterator | listAliasesFor(Resource res)
Answer an iterator over the defined aliases for a resource.
Parameters: res - A resource (including properties) An iterator over the aliases for res . |
aliasMap | protected OneToManyMap aliasMap()(Code) | |
Prepare the local alias map by reading the alias table from the concrete sub-class.
|
aliasTable | abstract protected Resource[][] aliasTable()(Code) | | Answer a table of binary mappings denoting that one resource is the
alias for another (for example daml:Class and rdfs:Class).
|
containsSome | public static boolean containsSome(EnhGraph g, Node n, Property p)(Code) | | Utility method: answer true iff the enhanced graph contains some triple which
has n as subject, p.asNode() as predicate, and any object.
Parameters: g - an enhanced graph to search for triples Parameters: n - some node Parameters: p - a property containing a predicate node true iff the graph contains (n, p, X) for some X |
getAliasFor | public Resource getAliasFor(Resource res)(Code) | |
Answer an alias for the given resource. If there is more than
one such alias, a choice is made non-deterministically between the
alternatives.
Parameters: res - A resource (including properties) to test for an alias The alias for res , or one of the aliases for res if morethan one is defined, or null if no alias is defined for res . |
hasAliasFor | public boolean hasAliasFor(Resource res)(Code) | |
Answer true if the given resource has an alias in this profile.
Parameters: res - A resource (including properties) to test for an alias True if there is an alias for res |
listAliasesFor | public Iterator listAliasesFor(Resource res)(Code) | |
Answer an iterator over the defined aliases for a resource.
Parameters: res - A resource (including properties) An iterator over the aliases for res . If there areno aliases, the empty iterator is returned. |
|
|