|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Resource | |
|---|---|
| com.hp.hpl.jena.assembler | |
| com.hp.hpl.jena.ontology | Provides a set of abstractions and convenience classes for accessing and manipluating ontologies represented in RDF. |
| com.hp.hpl.jena.rdf.model | A package for creating and manipulating RDF graphs. |
| com.hp.hpl.jena.reasoner | The Jena2 reasoner subsystem is designed to allow a range of inference engines to be plugged into Jena. |
| com.hp.hpl.jena.reasoner.dig | |
| com.hp.hpl.jena.reasoner.rulesys | Provides a selection of simple rule engines for Jena inference models. |
| com.hp.hpl.jena.reasoner.transitiveReasoner | This package contains a reasoner which supports transitive-reflexive closure of subPropertyOf and subClassOf relations. |
| com.hp.hpl.jena.shared | This package defines some classes common to the Jena API and SPI levels, in particular the JenaException class from which all Jena-specific exceptions hang, and the interface PrefixMapping for translation to and from QNames. |
| com.hp.hpl.jena.util | Miscellaneous collection of utility classes. |
| com.hp.hpl.jena.vocabulary | A package containing constant classes with predefined constant objects for classes and properties defined in well known vocabularies. |
| Uses of Resource in com.hp.hpl.jena.assembler |
|---|
| Methods in com.hp.hpl.jena.assembler that return Resource | |
|---|---|
static Resource |
AssemblerHelp.findSpecificType(Resource root)
Answer the most specific type of root that is a subclass of
ja:Object. |
static Resource |
AssemblerHelp.findSpecificType(Resource root,
Resource baseType)
Answer the most specific type of root that is a subclass of
givenType. |
static Resource |
AssemblerHelp.getResource(Statement s)
Answer the resource that is the object of the statement s. |
static Resource |
AssemblerHelp.singleModelRoot(Model singleRoot)
Answer the single resource in singleRoot of type
ja:Model. |
static Resource |
AssemblerHelp.singleRoot(Model singleRoot,
Resource type)
Answer the single resource in singleRoot of type
type. |
static Resource |
AssemblerHelp.withFullModel(Resource root)
Answer a Resource .equals() to root, but in the expanded
model. |
| Methods in com.hp.hpl.jena.assembler with parameters of type Resource | |
|---|---|
static java.util.Set |
AssemblerHelp.findAssemblerRoots(Model model,
Resource type)
Answer a Set of the objects in the full expansion of the assembler specification model which have rdf:type type,
which must be a subtype of ja:Object. |
static Resource |
AssemblerHelp.findSpecificType(Resource root)
Answer the most specific type of root that is a subclass of
ja:Object. |
static Resource |
AssemblerHelp.findSpecificType(Resource root,
Resource baseType)
Answer the most specific type of root that is a subclass of
givenType. |
static java.util.Set |
AssemblerHelp.findSpecificTypes(Resource root,
Resource baseType)
Answer all the types of root which are subtypes of
baseType and which do not have subtypes which are
also types of root. |
java.lang.Object |
Assembler.open(Assembler a,
Resource root)
Answer open( a, root, Mode.DEFAULT ). |
java.lang.Object |
Assembler.open(Assembler a,
Resource root,
Mode mode)
The core operation: answer a new object constructed according to the object description hanging from root, using the assembler
a for any sub-objects. |
java.lang.Object |
Assembler.open(Resource root)
Answer open( this, root, Mode.DEFAULT ). |
Model |
Assembler.openModel(Resource root)
Answer (Model) open( this, root, Mode.DEFAULT ), unless
the result cannot be or is not a Model, in which case throw an exception. |
Model |
Assembler.openModel(Resource root,
Mode mode)
Answer (Model) open( this, root, mode ), unless
the result cannot be or is not a Model, in which case throw an exception. |
boolean |
Mode.permitCreateNew(Resource root,
java.lang.String name)
Answer true if the object root with the given name
can be created if it does not already exist. |
boolean |
Mode.permitUseExisting(Resource root,
java.lang.String name)
Answer true if the existing object root with the given
name can be reused. |
static Resource |
AssemblerHelp.singleRoot(Model singleRoot,
Resource type)
Answer the single resource in singleRoot of type
type. |
static Resource |
AssemblerHelp.withFullModel(Resource root)
Answer a Resource .equals() to root, but in the expanded
model. |
| Uses of Resource in com.hp.hpl.jena.ontology |
|---|
| Subinterfaces of Resource in com.hp.hpl.jena.ontology | |
|---|---|
interface |
AllDifferent
Interface defining an individual in which all members of a collection are declared pair-wise disjoint. |
interface |
AllValuesFromRestriction
A property restriction that requires the named property to have have any range instances to be members of a given class. |
interface |
AnnotationProperty
Interface that represents the category of annotation properties in an ontology language. |
interface |
BooleanClassDescription
Encapsulates a class description formed from a boolean combination of other class descriptions (ie union, intersection or complement). |
interface |
CardinalityQRestriction
Interface representing the ontology abstraction for a qualified cardinality restriction. |
interface |
CardinalityRestriction
A property restriction that requires the named property to have have exactly the given number of values for a given instance to be a member of the class defined by the restriction. |
interface |
ComplementClass
Class description that is formed from the complement of another class description |
interface |
DataRange
Represents an ontology DataRange: a class-like construct that contains only concrete data literals. |
interface |
DatatypeProperty
Interface that encapsulates the class of properties whose range values are datatype values (as distinct from ObjectProperty whose values are
individuals). |
interface |
EnumeratedClass
Encapsulates a class description representing a closed enumeration of individuals. |
interface |
FunctionalProperty
Interface encapsulating the class of properties that are functional: that is, properties in which a given given domain value has a unique value in the range. |
interface |
HasValueRestriction
A property restriction that requires the named property to have a given individual as its value. |
interface |
Individual
Interface that encapsulates an individual in an ontology, sometimes referred to as a fact or assertion, or a member of the a-box. |
interface |
IntersectionClass
Encapsulates a class description that is the intersection of a list of class expressions. |
interface |
InverseFunctionalProperty
Interface encapsulating the class of properties that are inverse functional: that is, properties in which a given given range value has a unique value in the domain (effectively, a key). |
interface |
MaxCardinalityQRestriction
Interface representing the ontology abstraction for a qualified maximum cardinality restriction. |
interface |
MaxCardinalityRestriction
A property restriction that requires the named property to have have at most the given number of values for a given instance to be a member of the class defined by the restriction. |
interface |
MinCardinalityQRestriction
Interface representing the ontology abstraction for a qualified minimum cardinality restriction. |
interface |
MinCardinalityRestriction
A property restriction that requires the named property to have have at least the given number of values for a given instance to be a member of the class defined by the restriction. |
interface |
ObjectProperty
Interface encapsulating properties whose range values are restricted to individuals (as distinct from datatype valued properties). |
interface |
OntClass
Interface that represents an ontology node characterising a class description. |
interface |
Ontology
Interface encapsulating the distinguished instance in a given ontology document that presents meta-data and other processing data about the document (including which other documents are imported by a document). |
interface |
OntProperty
Interface encapsulating a property in an ontology. |
interface |
OntResource
Provides a common super-type for all of the abstractions in this ontology representation package. |
interface |
QualifiedRestriction
Represents a qualified restriction, in which all values of the restricted property are required to be members of a given class. |
interface |
Restriction
Interface that encapsulates a class description formed by restricting one or more properties to have constrained values and/or cardinalities. |
interface |
SomeValuesFromRestriction
A property restriction that requires the named property to have at least one range instance belonging to the given class. |
interface |
SymmetricProperty
Interface that encapsulates a property that is symmetric, i.e. one in which if p(x, y) holds, thenp(y, x)
must also hold. |
interface |
TransitiveProperty
Interface that denotes a property that is transitive i.e. one in which if x p y holds,
and y p z
holds, then x p z must also hold. |
interface |
UnionClass
Class description that is formed from the union of a list of a class descriptions. |
| Fields in com.hp.hpl.jena.ontology declared as Resource | |
|---|---|
static Resource |
OntDocumentManager.DOC_MGR_POLICY
rdf:type for document manager policy nodes |
static Resource |
OntDocumentManager.ONTOLOGY_SPEC
rdf:type for ontology specification nodes in meta-data file |
| Methods in com.hp.hpl.jena.ontology that return Resource | |
|---|---|
Resource |
Profile.ALL_DIFFERENT()
Answer the resource that represents the class of axioms denoting that a set of individuals are pairwise distinct. |
Resource |
Profile.ANNOTATION_PROPERTY()
Answer the class that denotes an annotation property |
Resource |
Profile.CLASS()
Answer the resource that represents the class 'class' in this vocabulary. |
Resource |
Profile.DATARANGE()
Answer the class that defines a closed range of concrete data values. |
Resource |
Profile.DATATYPE_PROPERTY()
Answer the resource that represents the class of properties whose range elements are literals (not individuals) |
Resource |
Profile.DEPRECATED_CLASS()
Answer the resource that represents the documentation class of deprecated classes. |
Resource |
Profile.DEPRECATED_PROPERTY()
Answer the resource that represents the documentation class of deprecated properties. |
Resource |
Profile.FUNCTIONAL_PROPERTY()
Answer the resource that represents the class of properties that are functional, i.e. whose range is unique for a given domain element. |
Resource |
Profile.getAliasFor(Resource res)
Answer an alias for the given resource. |
Resource |
AllValuesFromRestriction.getAllValuesFrom()
Answer the resource characterising the constraint on all values of the restricted property. |
Resource |
OntResource.getIsDefinedBy()
Answer a resource that is declared to provide a definition of this resource. |
Resource |
OntTools.LCAIndex.getLCA(Resource u,
Resource v)
|
Resource |
OntTools.DisjointSet.getNode()
|
Resource |
OntModel.getOWLLanguageLevel(java.util.List problems)
If this OntModel is presenting an OWL model, answer the minimum OWL language level that the constructs used in this model lie entirely within. |
Resource |
OWLSyntaxChecker.getOWLLanguageLevel(OntModel owlModel,
java.util.List problems)
Given an OWL ontology model owlModel, answer the minimum OWL language level that the constructs used in this model lie entirely within. |
Resource |
OntResource.getRDFType()
Answer the rdf:type (i.e. the class) of this resource. |
Resource |
OntResource.getRDFType(boolean direct)
Answer the rdf:type (i.e. the class) of this resource. |
Resource |
OntResource.getSeeAlso()
Answer a resource that provides additional information about this resource. |
Resource |
SomeValuesFromRestriction.getSomeValuesFrom()
Answer the resource characterising the constraint on at least one value of the restricted property. |
Resource |
OntTools.Path.getTerminalResource()
Answer the resource at the end of the path, if defined, or null |
Resource |
Profile.INVERSE_FUNCTIONAL_PROPERTY()
Answer the resource that represents the class of properties that are inverse functional, i.e. whose domain is unique for a given range element. |
Resource |
Profile.LIST()
The rdf:type for cells in this list |
Resource |
Profile.NIL()
The resource that denotes the end of the list |
Resource |
Profile.NOTHING()
Answer the resource that represents the necessarily empty class. |
Resource |
Profile.OBJECT_PROPERTY()
Answer the resource that represents the class of properties whose range elements are individuals (not literals) |
Resource |
Profile.ONTOLOGY_PROPERTY()
Answer the class that denotes an ontology property |
Resource |
Profile.ONTOLOGY()
Answer the resource that represents the class of ontology header elements. |
Resource |
Profile.PROPERTY()
Answer the resource that represents the general class of properties. |
Resource |
Profile.RESTRICTION()
Answer the resource that represents the a class formed by placing constraints (restrictions) on the values of a property. |
Resource |
Profile.SYMMETRIC_PROPERTY()
Answer the resource that represents the class of properties that are symmetric. |
Resource |
Profile.THING()
Answer the resource that represents the class all individuals. |
Resource |
Profile.TRANSITIVE_PROPERTY()
Answer the resource that represents the class of properties that apply transitively. |
| Methods in com.hp.hpl.jena.ontology with parameters of type Resource | |
|---|---|
void |
Ontology.addBackwardCompatibleWith(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) is backwards compatible with. |
void |
OntResource.addDifferentFrom(Resource res)
Add a resource that is declared to be equivalent to this resource. |
void |
OntClass.addDisjointWith(Resource cls)
Add a class that this class is disjoint with. |
void |
AllDifferent.addDistinctMember(Resource res)
Add the given individual to the list of distinct members of this AllDifferent declaration. |
void |
OntProperty.addDomain(Resource res)
Add a resource representing the domain of this property. |
void |
OntClass.addEquivalentClass(Resource cls)
Add a class that is equivalent to this class. |
void |
Ontology.addImport(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) imports. |
void |
Ontology.addIncompatibleWith(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) is incompatible with. |
void |
OntResource.addIsDefinedBy(Resource res)
Add a resource that is declared to provide a definition of this resource. |
void |
EnumeratedClass.addOneOf(Resource res)
Add an individual to the enumeration that defines the class extension of this class. |
void |
Individual.addOntClass(Resource cls)
Add the given ontology class as one of the classes to which this individual belongs. |
void |
BooleanClassDescription.addOperand(Resource cls)
Add a class the operands of this boolean expression. |
void |
Ontology.addPriorVersion(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) supercedes. |
void |
OntProperty.addRange(Resource res)
Add a resource representing the range of this property. |
void |
OntResource.addRDFType(Resource cls)
Add the given class as one of the rdf:type's for this resource. |
void |
OntResource.addSameAs(Resource res)
Add a resource that is declared to be equivalent to this resource. |
void |
OntResource.addSeeAlso(Resource res)
Add a resource that is declared to provided additional information about the definition of this resource |
void |
OntClass.addSubClass(Resource cls)
Add a sub-class of this class. |
void |
OntClass.addSuperClass(Resource cls)
Add a super-class of this class. |
static OntModelSpec |
OntModelSpec.assemble(Resource root)
Answer the OntModelSpec described using the Jena Assembler vocabulary properties of root. |
AllValuesFromRestriction |
Restriction.convertToAllValuesFromRestriction(Resource cls)
Convert this restriction to an all values from class expression. |
ComplementClass |
OntClass.convertToComplementClass(Resource cls)
Answer a view of this class as an complement of the given class. |
SomeValuesFromRestriction |
Restriction.convertToSomeValuesFromRestriction(Resource cls)
Convert this restriction to a some values from class expression |
AllValuesFromRestriction |
OntModel.createAllValuesFromRestriction(java.lang.String uri,
Property prop,
Resource cls)
Answer a class description defined as the class of those individuals for which all values of the given property belong to the given class |
ComplementClass |
OntModel.createComplementClass(java.lang.String uri,
Resource cls)
Answer a resource representing the class that is the complement of the given argument class |
Individual |
OntModel.createIndividual(Resource cls)
Answer a resource that represents an Individual node in this model. |
Individual |
OntModel.createIndividual(java.lang.String uri,
Resource cls)
Answer a resource that represents an Individual node in this model. |
OntResource |
OntModel.createOntResource(java.lang.Class javaClass,
Resource rdfType,
java.lang.String uri)
Answer a resource that represents a generic ontology node in this model. |
SomeValuesFromRestriction |
OntModel.createSomeValuesFromRestriction(java.lang.String uri,
Property prop,
Resource cls)
Answer a class description defined as the class of those individuals that have at least one property with a value belonging to the given class |
void |
OntClass.dropIndividual(Resource individual)
Remove the given individual from the set of instances that are members of this class. |
static OntTools.Path |
OntTools.findShortestPath(Model m,
Resource start,
RDFNode end,
Filter onPath)
Answer the shortest path from the start resource to the end RDF node,
such that every step on the path is accepted by the given filter. |
Resource |
Profile.getAliasFor(Resource res)
Answer an alias for the given resource. |
Resource |
OntTools.LCAIndex.getLCA(Resource u,
Resource v)
|
OntResource |
OntModel.getOntResource(Resource res)
Answer a resource presenting the OntResource facet, which
corresponds to the given resource but attached to this model. |
OntTools.DisjointSet |
OntTools.LCAIndex.getSet(Resource r)
|
boolean |
Profile.hasAliasFor(Resource res)
Answer true if the given resource has an alias in this profile. |
boolean |
AllValuesFromRestriction.hasAllValuesFrom(Resource cls)
Answer true if this property restriction has the given class as the class to which all values of the restricted property must belong. |
boolean |
AllDifferent.hasDistinctMember(Resource res)
Answer true if this AllDifferent declaration includes res as one of the distinct individuals. |
boolean |
OntProperty.hasDomain(Resource res)
Answer true if the given resource a class specifying the domain of this property. |
boolean |
OntClass.hasEquivalentClass(Resource cls)
Answer true if the given class is equivalent to this class. |
boolean |
EnumeratedClass.hasOneOf(Resource res)
Answer true if the given individual is one of the enumerated individuals in the class extension of this class. |
boolean |
Individual.hasOntClass(Resource ontClass)
Answer true if this individual is a member of the class denoted by the given ontology class resource. |
boolean |
Individual.hasOntClass(Resource ontClass,
boolean direct)
Answer true if this individual is a member of the class denoted by the given class resource. |
boolean |
BooleanClassDescription.hasOperand(Resource cls)
Answer true if this Boolean class expression has the given class as an operand. |
boolean |
Ontology.hasPriorVersion(Resource res)
Answer true if this ontology (the ontology represented by this resource) supercedes the given resource. |
boolean |
OntProperty.hasRange(Resource res)
Answer true if the given resource a class specifying the range of this property. |
boolean |
OntResource.hasRDFType(Resource ontClass)
Answer true if this resource is a member of the class denoted by the given class resource. |
boolean |
OntResource.hasRDFType(Resource ontClass,
boolean direct)
Answer true if this resource is a member of the class denoted by the given class resource. |
boolean |
OntResource.hasSeeAlso(Resource res)
Answer true if this resource has the given resource as a source of additional information. |
boolean |
SomeValuesFromRestriction.hasSomeValuesFrom(Resource cls)
Answer true if this property restriction has the given class as the class to which at least one value of the restricted property must belong. |
boolean |
OntClass.hasSubClass(Resource cls)
Answer true if the given class is a sub-class of this class. |
boolean |
OntClass.hasSubClass(Resource cls,
boolean direct)
Answer true if the given class is a sub-class of this class. |
boolean |
OntClass.hasSuperClass(Resource cls)
Answer true if the given class is a super-class of this class. |
boolean |
OntClass.hasSuperClass(Resource cls,
boolean direct)
Answer true if the given class is a super-class of this class. |
boolean |
Ontology.imports(Resource res)
Answer true if this ontology (the ontology represented by this resource) imports the given resource. |
boolean |
Ontology.isBackwardCompatibleWith(Resource res)
Answer true if this ontology (the ontology represented by this resource) is backward compatible with the given resource. |
boolean |
OntResource.isDefinedBy(Resource res)
Answer true if this resource is defined by the given resource. |
boolean |
OntResource.isDifferentFrom(Resource res)
Answer true if this resource is different from the given resource. |
boolean |
OntClass.isDisjointWith(Resource cls)
Answer true if this class is disjoint with the given class. |
boolean |
Ontology.isIncompatibleWith(Resource res)
Answer true if this ontology (the ontology represented by this resource) is incompatible with the given resource. |
boolean |
OntResource.isSameAs(Resource res)
Answer true if this resource is the same as the given resource. |
java.util.Iterator |
Profile.listAliasesFor(Resource res)
Answer an iterator over the defined aliases for a resource. |
ExtendedIterator |
OntModel.listIndividuals(Resource cls)
Answer an iterator that ranges over the resources in this model that are instances of the given class. |
void |
AllValuesFromRestriction.removeAllValuesFrom(Resource cls)
Remove the statement that this restriction has all values from the given class among the values for the restricted property. |
void |
Ontology.removeBackwardCompatibleWith(Resource res)
Remove the statement that this ontology is backwards compatible with the ontology represented by the given resource. |
void |
OntResource.removeDefinedBy(Resource res)
Remove the statement that this resource is defined by the given resource. |
void |
OntResource.removeDifferentFrom(Resource res)
Remove the statement that this resource is different the given resource. |
void |
OntClass.removeDisjointWith(Resource cls)
Remove the statement that this class and the given class are disjoint. |
void |
AllDifferent.removeDistinctMember(Resource res)
Remove the given resource from the list of distinct individuals. |
void |
OntProperty.removeDomain(Resource cls)
Remove the given class from the stated domain(s) of this property. |
void |
OntClass.removeEquivalentClass(Resource cls)
Remove the statement that this class and the given class are equivalent. |
void |
Ontology.removeImport(Resource res)
&n |