| com.hp.hpl.jena.ontology.impl.OntResourceImpl com.hp.hpl.jena.ontology.impl.OntologyImpl
OntologyImpl | public class OntologyImpl extends OntResourceImpl implements Ontology(Code) | |
Implementation of the Ontology interface, encapsulating nodes that hold the
meta-data about whole ontologies.
author: Ian Dickinson, HP Labs author: (email) version: CVS $Id: OntologyImpl.java,v 1.15 2008/01/02 12:08:02 andy_seaborne Exp $ |
Field Summary | |
public static Implementation | factory A factory for generating Ontology facets from nodes in enhanced graphs. |
Constructor Summary | |
public | OntologyImpl(Node n, EnhGraph g)
Construct an ontology metadata node represented by the given node in the given graph. |
Method Summary | |
public void | addBackwardCompatibleWith(Resource res) Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) is backwards compatible with.
Parameters: res - Represents a resource that this ontology is compatible with. exception: OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile. | public void | addImport(Resource res) Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) imports.
Parameters: res - Represents a resource that this ontology imports. exception: OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile. | public void | addIncompatibleWith(Resource res) Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) is incompatible with.
Parameters: res - Represents a resource that this ontology is incompatible with. exception: OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile. | public void | addPriorVersion(Resource res) Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) supercedes.
Parameters: res - Represents a resource that this ontology supercedes. exception: OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile. | public OntResource | getBackwardCompatibleWith() Answer a resource that represents an ontology that is backwards compatible with this ontology. | public OntResource | getImport() Answer a resource that represents an ontology imported by this ontology. | public OntResource | getIncompatibleWith() Answer a resource that represents an ontology that is is incompatible with this ontology. | public OntResource | getPriorVersion() Answer a resource that represents an ontology that is superceded by this ontology. | public boolean | hasPriorVersion(Resource res) | public boolean | imports(Resource res) | public boolean | isBackwardCompatibleWith(Resource res) | public boolean | isIncompatibleWith(Resource res) | public ExtendedIterator | listBackwardCompatibleWith() Answer an iterator over all of the resources representing
ontologies that this ontology is backwards compatible with. | public ExtendedIterator | listImports() Answer an iterator over all of the resources representing ontologies imported by this ontology. | public ExtendedIterator | listIncompatibleWith() Answer an iterator over all of the resources representing
ontologies that this ontology is incompatible with. | public ExtendedIterator | listPriorVersion() Answer an iterator over all of the resources representing
ontologies that this ontology supercedes. | public void | removeBackwardCompatibleWith(Resource res) Remove the statement that this ontology is backwards compatible with
the ontology represented by the given resource. | public void | removeImport(Resource res) Remove the statement that this ontology imports the ontology represented by the given resource. | public void | removeIncompatibleWith(Resource res) Remove the statement that the given ontology is incompatible with this ontology. | public void | removePriorVersion(Resource res) Remove the statement that the given ontology is a prior version of this ontology. | public void | setBackwardCompatibleWith(Resource res) Assert that this ontology is backward compatible with the given ontology. | public void | setImport(Resource res) Assert that this ontology imports only the given ontology. | public void | setIncompatibleWith(Resource res) Assert that this ontology is incompatible with the given ontology. | public void | setPriorVersion(Resource res) Assert that this ontology is a new version of the given ontology. |
factory | public static Implementation factory(Code) | | A factory for generating Ontology facets from nodes in enhanced graphs.
|
OntologyImpl | public OntologyImpl(Node n, EnhGraph g)(Code) | |
Construct an ontology metadata node represented by the given node in the given graph.
Parameters: n - The node that represents the resource Parameters: g - The enh graph that contains n |
addBackwardCompatibleWith | public void addBackwardCompatibleWith(Resource res)(Code) | | Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) is backwards compatible with.
Parameters: res - Represents a resource that this ontology is compatible with. exception: OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile. |
addImport | public void addImport(Resource res)(Code) | | Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) imports.
Parameters: res - Represents a resource that this ontology imports. exception: OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile. |
addIncompatibleWith | public void addIncompatibleWith(Resource res)(Code) | | Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) is incompatible with.
Parameters: res - Represents a resource that this ontology is incompatible with. exception: OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile. |
addPriorVersion | public void addPriorVersion(Resource res)(Code) | | Add a resource representing an ontology that this ontology
(strictly, the ontology reprsented by this node) supercedes.
Parameters: res - Represents a resource that this ontology supercedes. exception: OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile. |
getBackwardCompatibleWith | public OntResource getBackwardCompatibleWith()(Code) | | Answer a resource that represents an ontology that is backwards compatible with this ontology. If there is
more than one such resource, an arbitrary selection is made.
An ont resource representing an ontology that this ontology is compatible with exception: OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile. |
getImport | public OntResource getImport()(Code) | | Answer a resource that represents an ontology imported by this ontology. If there is
more than one such resource, an arbitrary selection is made.
An ont resource representing a resource that this ontology imports exception: OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile. |
getIncompatibleWith | public OntResource getIncompatibleWith()(Code) | | Answer a resource that represents an ontology that is is incompatible with this ontology. If there is
more than one such resource, an arbitrary selection is made.
An ont resource representing an ontology that this ontology is incompatible with exception: OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile. |
getPriorVersion | public OntResource getPriorVersion()(Code) | | Answer a resource that represents an ontology that is superceded by this ontology. If there is
more than one such resource, an arbitrary selection is made.
An ont resource representing an ontology that this ontology supercedes exception: OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile. |
hasPriorVersion | public boolean hasPriorVersion(Resource res)(Code) | | Answer true if this ontology (the ontology represented by this
resource) supercedes the given resource.
Parameters: res - A resource to test against True if this ontology supercedes the ontology represented by res |
imports | public boolean imports(Resource res)(Code) | | Answer true if this ontology (the ontology represented by this
resource) imports the given resource.
Parameters: res - A resource to test against True if this ontology imports the ontology represented by res |
isBackwardCompatibleWith | public boolean isBackwardCompatibleWith(Resource res)(Code) | | Answer true if this ontology (the ontology represented by this
resource) is backward compatible with the given resource.
Parameters: res - A resource to test against True if this ontology is compatible with the ontology represented by res |
isIncompatibleWith | public boolean isIncompatibleWith(Resource res)(Code) | | Answer true if this ontology (the ontology represented by this
resource) is incompatible with the given resource.
Parameters: res - A resource to test against True if this ontology is incompatible with the ontology represented by res |
listBackwardCompatibleWith | public ExtendedIterator listBackwardCompatibleWith()(Code) | | Answer an iterator over all of the resources representing
ontologies that this ontology is backwards compatible with.
Each element of the iterator will be an
OntResource .
An iterator over the ontology resources compatible with this ontology exception: OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile. |
listImports | public ExtendedIterator listImports()(Code) | | Answer an iterator over all of the resources representing ontologies imported by this ontology.
Each elemeent of the iterator will be an
OntResource .
An iterator over the ontology import resources exception: OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile. |
listIncompatibleWith | public ExtendedIterator listIncompatibleWith()(Code) | | Answer an iterator over all of the resources representing
ontologies that this ontology is incompatible with.
Each element of the iterator will be an
OntResource .
An iterator over the ontology resources that this ontology is incompatible with exception: OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile. |
listPriorVersion | public ExtendedIterator listPriorVersion()(Code) | | Answer an iterator over all of the resources representing
ontologies that this ontology supercedes.
Each element of the iterator will be an
OntResource .
An iterator over the ontology resources superceded by this ontology exception: OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile. |
removeBackwardCompatibleWith | public void removeBackwardCompatibleWith(Resource res)(Code) | | Remove the statement that this ontology is backwards compatible with
the ontology represented by the given resource. If this statement
is not true of the current model, nothing happens.
Parameters: res - A resource that represents an ontology that is no longer to be imported |
removeImport | public void removeImport(Resource res)(Code) | | Remove the statement that this ontology imports the ontology represented by the given resource. If this statement
is not true of the current model, nothing happens.
Parameters: res - A resource that represents an ontology that is no longer to be imported |
removeIncompatibleWith | public void removeIncompatibleWith(Resource res)(Code) | | Remove the statement that the given ontology is incompatible with this ontology. If this statement
is not true of the current model, nothing happens.
Parameters: res - A resource that represents an ontology that is no longer incompatible with this ontology |
removePriorVersion | public void removePriorVersion(Resource res)(Code) | | Remove the statement that the given ontology is a prior version of this ontology. If this statement
is not true of the current model, nothing happens.
Parameters: res - A resource that represents an ontology that is no longer a prior version of this ontology |
setBackwardCompatibleWith | public void setBackwardCompatibleWith(Resource res)(Code) | | Assert that this ontology is backward compatible with the given ontology. Any existing
statements for sameAs will be removed.
Parameters: res - Represents a resource that this ontology is compatible with. exception: OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile. |
setImport | public void setImport(Resource res)(Code) | | Assert that this ontology imports only the given ontology. Any existing
statements for sameAs will be removed.
Parameters: res - Represents a resource that this ontology imports. exception: OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile. |
setIncompatibleWith | public void setIncompatibleWith(Resource res)(Code) | | Assert that this ontology is incompatible with the given ontology. Any existing
statements for incompatibleWith will be removed.
Parameters: res - Represents a resource that this ontology is incompatible with. exception: OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile. |
setPriorVersion | public void setPriorVersion(Resource res)(Code) | | Assert that this ontology is a new version of the given ontology. Any existing
statements for priorVersion will be removed.
Parameters: res - Represents a resource that this ontology supercedes. exception: OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile. |
Methods inherited from com.hp.hpl.jena.ontology.impl.OntResourceImpl | public void addComment(String comment, String lang)(Code)(Java Doc) public void addComment(Literal comment)(Code)(Java Doc) public void addDifferentFrom(Resource res)(Code)(Java Doc) public void addIsDefinedBy(Resource res)(Code)(Java Doc) public void addLabel(String label, String lang)(Code)(Java Doc) public void addLabel(Literal label)(Code)(Java Doc) protected void addListPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc) protected void addPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc) public void addRDFType(Resource cls)(Code)(Java Doc) public void addSameAs(Resource res)(Code)(Java Doc) public void addSeeAlso(Resource res)(Code)(Java Doc) public void addVersionInfo(String info)(Code)(Java Doc) public AllDifferent asAllDifferent()(Code)(Java Doc) public AnnotationProperty asAnnotationProperty()(Code)(Java Doc) public OntClass asClass()(Code)(Java Doc) public DataRange asDataRange()(Code)(Java Doc) public DatatypeProperty asDatatypeProperty()(Code)(Java Doc) public Individual asIndividual()(Code)(Java Doc) public ObjectProperty asObjectProperty()(Code)(Java Doc) public Ontology asOntology()(Code)(Java Doc) public OntProperty asProperty()(Code)(Java Doc) protected void checkProfile(Object term, String name)(Code)(Java Doc) protected RDFNode convertToType(Resource type, String name, Class cls)(Code)(Java Doc) public int getCardinality(Property p)(Code)(Java Doc) public String getComment(String lang)(Code)(Java Doc) public OntResource getDifferentFrom()(Code)(Java Doc) public Resource getIsDefinedBy()(Code)(Java Doc) public String getLabel(String lang)(Code)(Java Doc) public OntModel getOntModel()(Code)(Java Doc) public Profile getProfile()(Code)(Java Doc) public RDFNode getPropertyValue(Property property)(Code)(Java Doc) public Resource getRDFType()(Code)(Java Doc) public Resource getRDFType(boolean direct)(Code)(Java Doc) public OntResource getSameAs()(Code)(Java Doc) public Resource getSeeAlso()(Code)(Java Doc) public String getVersionInfo()(Code)(Java Doc) public boolean hasComment(String comment, String lang)(Code)(Java Doc) public boolean hasComment(Literal comment)(Code)(Java Doc) public boolean hasLabel(String label, String lang)(Code)(Java Doc) public boolean hasLabel(Literal label)(Code)(Java Doc) protected boolean hasPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc) public boolean hasRDFType(String uri)(Code)(Java Doc) public boolean hasRDFType(Resource ontClass)(Code)(Java Doc) public boolean hasRDFType(Resource ontClass, boolean direct)(Code)(Java Doc) protected boolean hasRDFType(Resource ontClass, String name, boolean direct)(Code)(Java Doc) public boolean hasSeeAlso(Resource res)(Code)(Java Doc) protected static boolean hasType(Node n, EnhGraph g, Resource type)(Code)(Java Doc) public boolean hasVersionInfo(String info)(Code)(Java Doc) public boolean isAllDifferent()(Code)(Java Doc) public boolean isAnnotationProperty()(Code)(Java Doc) public boolean isClass()(Code)(Java Doc) public boolean isDataRange()(Code)(Java Doc) public boolean isDatatypeProperty()(Code)(Java Doc) public boolean isDefinedBy(Resource res)(Code)(Java Doc) public boolean isDifferentFrom(Resource res)(Code)(Java Doc) public boolean isIndividual()(Code)(Java Doc) public boolean isObjectProperty()(Code)(Java Doc) public boolean isOntLanguageTerm()(Code)(Java Doc) public boolean isOntology()(Code)(Java Doc) public boolean isProperty()(Code)(Java Doc) public boolean isSameAs(Resource res)(Code)(Java Doc) protected boolean langTagMatch(String desired, String target)(Code)(Java Doc) protected ExtendedIterator listAs(Property p, String name, Class cls)(Code)(Java Doc) public ExtendedIterator listComments(String lang)(Code)(Java Doc) public ExtendedIterator listDifferentFrom()(Code)(Java Doc) protected ExtendedIterator listDirectPropertyValues(Property p, String name, Class cls, Property orderRel, boolean direct, boolean inverse)(Code)(Java Doc) public ExtendedIterator listIsDefinedBy()(Code)(Java Doc) public ExtendedIterator listLabels(String lang)(Code)(Java Doc) public NodeIterator listPropertyValues(Property property)(Code)(Java Doc) public ExtendedIterator listRDFTypes(boolean direct)(Code)(Java Doc) public ExtendedIterator listSameAs()(Code)(Java Doc) public ExtendedIterator listSeeAlso()(Code)(Java Doc) public ExtendedIterator listVersionInfo()(Code)(Java Doc) protected Object objectAs(Property p, String name, Class asClass)(Code)(Java Doc) protected int objectAsInt(Property p, String name)(Code)(Java Doc) protected OntProperty objectAsProperty(Property p, String name)(Code)(Java Doc) protected OntResource objectAsResource(Property p, String name)(Code)(Java Doc) public void remove()(Code)(Java Doc) public void removeComment(String comment, String lang)(Code)(Java Doc) public void removeComment(Literal comment)(Code)(Java Doc) public void removeDefinedBy(Resource res)(Code)(Java Doc) public void removeDifferentFrom(Resource res)(Code)(Java Doc) public void removeLabel(String label, String lang)(Code)(Java Doc) public void removeLabel(Literal label)(Code)(Java Doc) public void removeProperty(Property property, RDFNode value)(Code)(Java Doc) protected void removePropertyValue(Property prop, String name, RDFNode value)(Code)(Java Doc) public void removeRDFType(Resource cls)(Code)(Java Doc) public void removeSameAs(Resource res)(Code)(Java Doc) public void removeSeeAlso(Resource res)(Code)(Java Doc) public void removeVersionInfo(String info)(Code)(Java Doc) protected String selectLang(StmtIterator stmts, String lang)(Code)(Java Doc) public void setComment(String comment, String lang)(Code)(Java Doc) public void setDifferentFrom(Resource res)(Code)(Java Doc) public void setIsDefinedBy(Resource res)(Code)(Java Doc) public void setLabel(String label, String lang)(Code)(Java Doc) public void setPropertyValue(Property property, RDFNode value)(Code)(Java Doc) protected void setPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc) public void setRDFType(Resource cls)(Code)(Java Doc) public void setSameAs(Resource res)(Code)(Java Doc) public void setSeeAlso(Resource res)(Code)(Java Doc) public void setVersionInfo(String info)(Code)(Java Doc)
|
|
|