Package | Description |
---|---|
com.hp.hpl.jena.assembler | |
com.hp.hpl.jena.enhanced |
This package defines the enhanced node and graph classes; an enhanced
node is one embedded in a particular enhanced graph.
|
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.util |
Miscellaneous collection of utility classes.
|
Modifier and Type | Method and Description |
---|---|
RDFNode |
BadObjectException.getObject() |
Modifier and Type | Field and Description |
---|---|
static Personality<RDFNode> |
BuiltinPersonalities.model |
Modifier and Type | Method and Description |
---|---|
<T extends RDFNode> |
EnhNode.as(Class<T> t)
allow subclasses to implement RDFNode & its subinterface
|
<X extends RDFNode> |
EnhNode.canAs(Class<X> t)
API-level method for polymorphic testing
|
<X extends RDFNode> |
EnhGraph.getNodeAs(Node n,
Class<X> interf)
Answer an enhanced node that wraps the given node and conforms to the given
interface type.
|
<X extends RDFNode> |
EnhNode.viewAs(Class<X> t)
Answer a facet of this node, where that facet is denoted by the
given type.
|
Constructor and Description |
---|
EnhGraph(Graph g,
Personality<RDFNode> p)
Construct an enhanced graph from the given underlying graph, and
a factory for generating enhanced nodes.
|
Modifier and Type | Interface and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
RDFNode |
HasValueRestriction.getHasValue()
Answer the RDF value that all values of the restricted property must be equal to.
|
RDFNode |
OntResource.getPropertyValue(Property property)
Answer the value of a given RDF property for this resource, or null
if it doesn't have one.
|
RDFNode |
OntTools.Path.getTerminal()
Answer the RDF node at the end of the path, if defined, or null
|
Modifier and Type | Method and Description |
---|---|
com.hp.hpl.jena.util.iterator.ExtendedIterator<RDFNode> |
OntResource.listComments(String lang)
Answer an iterator over all of the comment literals for this resource.
|
com.hp.hpl.jena.util.iterator.ExtendedIterator<RDFNode> |
OntResource.listIsDefinedBy()
Answer an iterator over all of the resources that are declared to define
this resource.
|
com.hp.hpl.jena.util.iterator.ExtendedIterator<RDFNode> |
OntResource.listLabels(String lang)
Answer an iterator over all of the label literals for this resource.
|
com.hp.hpl.jena.util.iterator.ExtendedIterator<RDFNode> |
OntResource.listSeeAlso()
Answer an iterator over all of the resources that are declared to provide addition
information about this resource.
|
Modifier and Type | Method and Description |
---|---|
HasValueRestriction |
Restriction.convertToHasValueRestriction(RDFNode value)
Convert this restriction to a has value class expression
|
HasValueRestriction |
OntModel.createHasValueRestriction(String uri,
Property prop,
RDFNode value)
Answer a class description defined as the class of those individuals that have the given
resource as the value of the given property
|
static OntTools.Path |
OntTools.findShortestPath(Model m,
Resource start,
RDFNode end,
com.hp.hpl.jena.util.iterator.Filter<Statement> 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. |
boolean |
OntTools.Path.hasTerminus(RDFNode n)
Answer true if the last link on the path has object equal to
n |
boolean |
HasValueRestriction.hasValue(RDFNode value)
Answer true if this property restriction has the given RDF value as the value which all
values of the restricted property must equal.
|
boolean |
OntModel.isInBaseModel(RDFNode node)
Answer true if the given node is a member of the base model of this ontology model.
|
void |
HasValueRestriction.removeHasValue(RDFNode value)
Remove the statement that this restriction requires the restricted property to have
the given value.
|
void |
OntResource.removeProperty(Property property,
RDFNode value)
Remove the specific property-value pair from this resource.
|
void |
HasValueRestriction.setHasValue(RDFNode value)
Assert that this restriction restricts the property to have the given
value.
|
void |
OntResource.setPropertyValue(Property property,
RDFNode value)
Set the value of the given property of this ontology resource to the given
value, encoded as an RDFNode.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Alt
An RDF Alternative container.
|
interface |
Bag
An RDF Bag container.
|
interface |
Container
An RDF Container.
|
interface |
Literal
An RDF Literal.
|
interface |
Property
An RDF Property.
|
interface |
RDFList
Provides a convenience encapsulation for lists formed from chains of RDF
statements arranged to form a head/tail cons-cell structure.
|
interface |
ReifiedStatement
A ReifiedStatement represents a Statement as a Resource.
|
interface |
Resource
An RDF Resource.
|
interface |
Seq
RDF Sequence container.
|
Modifier and Type | Field and Description |
---|---|
static com.hp.hpl.jena.util.iterator.Map1<Statement,RDFNode> |
Statement.Util.getObject |
Modifier and Type | Method and Description |
---|---|
<T extends RDFNode> |
RDFNode.as(Class<T> view)
RDFNodes can be converted to different implementation types.
|
<T extends RDFNode> |
RDFNode.canAs(Class<T> view)
Answer true iff this RDFNode can be viewed as an instance of
view : that is, if it has already been viewed in this
way, or if it has an attached model in which it has properties that
permit it to be viewed in this way. |
Modifier and Type | Method and Description |
---|---|
RDFNode |
ModelGraphInterface.asRDFNode(Node n)
Answer an RDF node wrapping
n suitably; URI nodes
become Resources with the same URI, blank nodes become Resources
with URI null but the same AnonId, and literal nodes become Literals
with n as their value carrier. |
RDFNode |
RDFList.get(int i)
Answer the node that is the i'th element of the list, assuming that the
head is item zero.
|
RDFNode |
Alt.getDefault()
Return the default value for this resource.
|
RDFNode |
RDFList.getHead()
Answer the value that is at the head of the list.
|
RDFNode |
Selector.getObject()
Answer the only RDFNode object that this Selector will match, or null if
it can match more than a single node.
|
RDFNode |
Statement.getObject()
An accessor funtion to return the object of the statement.
|
RDFNode |
SimpleSelector.getObject()
Return the object constraint of this selector.
|
RDFNode |
Seq.getObject(int index)
Get the member at a given index.
|
RDFNode |
ModelCon.getRDFNode(Node n)
|
RDFNode |
RDFNode.inModel(Model m)
Answer a .equals() version of this node, except that it's in the model
m . |
RDFNode |
NodeIterator.next()
Return the next RDFNode of the iteration.
|
RDFNode |
NodeIterator.nextNode()
Return the next RDFNode of the iteration.
|
RDFNode |
RDFList.replace(int i,
RDFNode value)
Replace the value at the i'th position in the list with the given value.
|
RDFNode |
RDFList.setHead(RDFNode value)
Update the head of the list to have the given value, and return the
previous value.
|
Modifier and Type | Method and Description |
---|---|
List<RDFNode> |
RDFList.asJavaList()
Answer the contents of this RDF list as a Java list of RDFNode values.
|
com.hp.hpl.jena.util.iterator.ExtendedIterator<RDFNode> |
RDFList.iterator()
Answer an iterator over the elements of the list.
|
Modifier and Type | Method and Description |
---|---|
Seq |
Seq.add(int index,
RDFNode o)
Insert a new member into the sequence at the specified position.
|
void |
RDFList.add(RDFNode value)
Add the given value to the end of the list.
|
Container |
Container.add(RDFNode o)
Add a new value to a container.
|
Model |
ModelCon.add(Resource s,
Property p,
RDFNode o)
add a statement to this model.
|
Resource |
Resource.addProperty(Property p,
RDFNode o)
Add a property to this resource.
|
void |
RDFList.ApplyFn.apply(RDFNode node)
Apply a function to the given RDF node.
|
Statement |
Statement.changeObject(RDFNode o)
change the object of the statement (S, P, X) to (S, P, o).
|
RDFList |
RDFList.cons(RDFNode value)
Return a reference to a new list cell whose head is
value
and whose tail is this list. |
boolean |
RDFList.contains(RDFNode value)
Answer true if the given node appears as the value of a value of any
of the cells of this list.
|
boolean |
Container.contains(RDFNode o)
Determine whether the container contains a value
|
boolean |
Model.contains(Resource s,
Property p,
RDFNode o)
Determine if an (S, P, O) pattern is present in this model, with null allowed
to represent a wildcard match.
|
boolean |
Model.containsResource(RDFNode r)
determine if the RDFNode r appears in any statement of this model.
|
RDFList |
Model.createList(RDFNode[] members)
Answer a new list containing the nodes from the given array, in order
|
static Statement |
ResourceFactory.createStatement(Resource subject,
Property predicate,
RDFNode object)
create a new statement.
|
Statement |
ResourceFactory.Interface.createStatement(Resource subject,
Property predicate,
RDFNode object)
create a new statement.
|
Statement |
Model.createStatement(Resource s,
Property p,
RDFNode o)
Create a Statement instance.
|
boolean |
Resource.hasProperty(Property p,
RDFNode o)
Test if this resource has a given property with a given value.
|
int |
RDFList.indexOf(RDFNode value)
Answer the index of the first occurrence of the given value in the list,
or -1 if the value is not in the list.
|
int |
Seq.indexOf(RDFNode o)
Return the index of a given member of the sequence.
|
int |
RDFList.indexOf(RDFNode value,
int start)
Answer the index of the first occurrence of the given value in the list
after index
start , or -1 if the value is not in the list
after the given start point. |
ResIterator |
Model.listResourcesWithProperty(Property p,
RDFNode o)
Answer an iterator [with no duplicates] over all the resources in this
model that have property
p with value o . |
StmtIterator |
Model.listStatements(Resource s,
Property p,
RDFNode o)
Find all the statements matching a pattern.
|
StmtIterator |
InfModel.listStatements(Resource subject,
Property predicate,
RDFNode object,
Model posit)
Find all the statements matching a pattern.
|
ResIterator |
Model.listSubjectsWithProperty(Property p,
RDFNode o)
An alias for
listResourcesWithProperty , retained for
backward compatability. |
Object |
RDFList.ReduceFn.reduce(RDFNode node,
Object accumulator)
Apply a function to the given RDF node.
|
RDFList |
RDFList.remove(RDFNode val)
Remove the given value from this list.
|
Model |
ModelCon.remove(Resource s,
Property p,
RDFNode o)
remove the statement
(s, p, o) from this model and
answer this model. |
Model |
Model.removeAll(Resource s,
Property p,
RDFNode r)
Remove all the statements matching (s, p, o) from this model.
|
RDFNode |
RDFList.replace(int i,
RDFNode value)
Replace the value at the i'th position in the list with the given value.
|
Seq |
Seq.set(int index,
RDFNode o)
Set the value at a given index in the sequence.
|
Alt |
Alt.setDefault(RDFNode o)
Set the default value of this container.
|
RDFNode |
RDFList.setHead(RDFNode value)
Update the head of the list to have the given value, and return the
previous value.
|
RDFList |
RDFList.with(RDFNode value)
Answer the list that is this list with the given value added to the end
of the list.
|
Modifier and Type | Method and Description |
---|---|
RDFList |
RDFList.append(Iterator<? extends RDFNode> nodes)
Answer a new list that is formed by adding each element of this list to
the head of the the list formed from the
given
nodes . |
void |
RDFList.concatenate(Iterator<? extends RDFNode> nodes)
Add the nodes returned by the given iterator to the end of this list.
|
RDFList |
Model.createList(Iterator<? extends RDFNode> members)
Answer a new list containing the resources from the given iterator, in order.
|
<T> com.hp.hpl.jena.util.iterator.ExtendedIterator<T> |
RDFList.mapWith(com.hp.hpl.jena.util.iterator.Map1<RDFNode,T> fn)
Answer an iterator of the elements of this list, to each of which
the given map function has been applied.
|
Constructor and Description |
---|
LiteralRequiredException(RDFNode n) |
ResourceRequiredException(RDFNode n) |
SimpleSelector(Resource subject,
Property predicate,
RDFNode object)
Create a selector.
|
Modifier and Type | Method and Description |
---|---|
static String |
PrintUtil.print(RDFNode node)
Return a simplified print string for an RDFNode.
|
Licenced under the Apache License, Version 2.0