Package | Description |
---|---|
org.apache.jena.assembler | |
org.apache.jena.enhanced |
This package defines the enhanced node and graph classes; an enhanced
node is one embedded in a particular enhanced graph.
|
org.apache.jena.ontology |
Provides a set of abstractions and convenience classes for accessing and manipluating ontologies
represented in RDF.
|
org.apache.jena.ontology.impl |
Provides default implementations for the abstractions defined in the
org.apache.jena.ontology package. |
org.apache.jena.rdf.model |
A package for creating and manipulating RDF graphs.
|
org.apache.jena.rdf.model.impl |
This package contains implementations of the interfaces defined
in the .model package, eg ModelCom for Model, ResourceImpl
for Resource, and so on.
|
org.apache.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.
|
Modifier and Type | Method and Description |
---|---|
void |
EnhGraph.setNodeCache(Cache<Node,RDFNode> cc)
Set the cache controller object for this graph
|
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 |
---|---|
ExtendedIterator<RDFNode> |
OntResource.listComments(String lang)
Answer an iterator over all of the comment literals for this resource.
|
ExtendedIterator<RDFNode> |
OntResource.listIsDefinedBy()
Answer an iterator over all of the resources that are declared to define
this resource.
|
ExtendedIterator<RDFNode> |
OntResource.listLabels(String lang)
Answer an iterator over all of the label literals for this resource.
|
ExtendedIterator<RDFNode> |
OntResource.listSeeAlso()
Answer an iterator over all of the resources that are declared to provide additional
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,
Predicate<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 | Class and Description |
---|---|
class |
AllDifferentImpl
Implementation of the abstraction of axioms that denote the single name assumption.
|
class |
AllValuesFromRestrictionImpl
Implementation of the allValuesFrom restriction abstraction.
|
class |
AnnotationPropertyImpl
Implementation for ontology abstraction of annotation property
|
class |
BooleanClassDescriptionImpl
Shared implementation for implementations of Boolean clas expressions.
|
class |
CardinalityQRestrictionImpl
Implementation of the exact qualified cardinality restriction
|
class |
CardinalityRestrictionImpl
Implementation of the cardinality restriction abstraction.
|
class |
ComplementClassImpl
Implementation of a node representing a complement class description.
|
class |
DataRangeImpl
Default implementation of the interface that defines a closed enumeration
of concrete values for the range of a property.
|
class |
DatatypePropertyImpl
Implementation of the datatype property abstraction
|
class |
EnumeratedClassImpl
Implementation of a node representing an enumerated class description.
|
class |
FunctionalPropertyImpl
Implementation of the functional property abstraction
|
class |
HasValueRestrictionImpl
Implementation of the hasValue restriction abstraction.
|
class |
IndividualImpl
Implementation for the ontology abstraction representing ontology class descriptions.
|
class |
IntersectionClassImpl
Implementation of a node representing an intersection class description.
|
class |
InverseFunctionalPropertyImpl
Implementation of the functional property abstraction
|
class |
MaxCardinalityQRestrictionImpl
Implementation of the max qualified cardinality restriction
|
class |
MaxCardinalityRestrictionImpl
Implementation of the max cardinality restriction abstraction.
|
class |
MinCardinalityQRestrictionImpl
Implementation of the min qualified cardinality restriction
|
class |
MinCardinalityRestrictionImpl
Implementation of the min cardinality restriction abstraction.
|
class |
ObjectPropertyImpl
Implementation of the object property abstraction
|
class |
OntClassImpl
Implementation of the ontology abstraction representing ontology classes.
|
class |
OntologyImpl
Implementation of the Ontology interface, encapsulating nodes that hold the
meta-data about whole ontologies.
|
class |
OntPropertyImpl
Implementation of the abstraction representing a general ontology property.
|
class |
OntResourceImpl
Abstract base class to provide shared implementation for implementations of ontology
resources.
|
class |
QualifiedRestrictionImpl
Implementation of qualied restrictions.
|
class |
RestrictionImpl
Implementation of the ontology abstraction representing restrictions.
|
class |
SomeValuesFromRestrictionImpl
Implementation of the someValuesFrom restriction abstraction.
|
class |
SymmetricPropertyImpl
Implementation of the symmetric property abstraction
|
class |
TransitivePropertyImpl
Implementation of the transitive property abstraction
|
class |
UnionClassImpl
Implementation of a node representing a union class description.
|
Modifier and Type | Method and Description |
---|---|
RDFNode |
HasValueRestrictionImpl.getHasValue()
Answer the RDF value that all values of the restricted property must be equal to.
|
RDFNode |
OntResourceImpl.getPropertyValue(Property property)
Answer the value of a given RDF property for this ontology resource, or null
if it doesn't have one.
|
Modifier and Type | Method and Description |
---|---|
ExtendedIterator<RDFNode> |
OntResourceImpl.listComments(String lang)
Answer an iterator over all of the comment literals for this resource.
|
ExtendedIterator<RDFNode> |
OntResourceImpl.listIsDefinedBy()
Answer an iterator over all of the resources that are declared to define
this resource.
|
ExtendedIterator<RDFNode> |
OntResourceImpl.listLabels(String lang)
Answer an iterator over all of the label literals for this resource.
|
ExtendedIterator<RDFNode> |
OntResourceImpl.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 |
RestrictionImpl.convertToHasValueRestriction(RDFNode value)
Convert this restriction to a has value class expression
|
HasValueRestriction |
OntModelImpl.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
|
boolean |
HasValueRestrictionImpl.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 |
OntModelImpl.isInBaseModel(RDFNode node)
Answer true if the given node is a member of the base model of this ontology model.
|
StmtIterator |
OntModelImpl.listStatements(Resource subject,
Property predicate,
RDFNode object,
Model posit)
Find all the statements matching a pattern.
|
void |
HasValueRestrictionImpl.removeHasValue(RDFNode value)
Remove the statement that this restriction requires the restricted property to have
the given value.
|
void |
OntResourceImpl.removeProperty(Property property,
RDFNode value)
Remove the specific RDF property-value pair from this DAML resource.
|
void |
HasValueRestrictionImpl.setHasValue(RDFNode value)
Assert that this restriction restricts the property to have the given
value.
|
void |
OntResourceImpl.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 | 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 |
Statement.getObject()
An accessor funtion to return the object of the statement.
|
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 |
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.
|
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 eleemnts, in order.
|
Statement |
Model.createStatement(Resource s,
Property p,
RDFNode o)
Create a Statement instance.
|
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.
|
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 compatibility. |
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> ExtendedIterator<T> |
RDFList.mapWith(Function<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 | Class and Description |
---|---|
class |
AltImpl
An implementation of Alt.
|
class |
BagImpl
An implementation of Bag
|
class |
ContainerImpl
An internal class not normally of interest to application developers.
|
class |
LiteralImpl
An implementation of Literal.
|
class |
PropertyImpl
An implementation of Property.
|
class |
RDFListImpl
Standard implementation the list abstraction from rdf.model.
|
class |
ReifiedStatementImpl
A ReifiedStatementImpl encodes a Statement and behaves as a Resource.
|
class |
ResourceImpl
An implementation of Resource.
|
class |
SeqImpl
An implementation of Seq
|
Modifier and Type | Method and Description |
---|---|
RDFNode |
ModelCom.asRDFNode(Node n) |
static RDFNode |
StatementImpl.createObject(Node n,
EnhGraph g)
create an RDF node which might be a literal, or not.
|
RDFNode |
RDFListImpl.get(int i)
Answer the node that is the i'th element of the list, assuming that the
head is item zero.
|
RDFNode |
AltImpl.getDefault() |
RDFNode |
RDFListImpl.getHead()
Answer the value that is at the head of the list.
|
RDFNode |
StatementImpl.getObject() |
abstract RDFNode |
StatementBase.getObject() |
RDFNode |
SeqImpl.getObject(int index) |
RDFNode |
ModelCom.getRDFNode(Node n) |
RDFNode |
SeqNodeIteratorImpl.next() |
RDFNode |
ContNodeIteratorImpl.next() |
RDFNode |
SeqNodeIteratorImpl.nextNode() |
RDFNode |
NodeIteratorImpl.nextNode() |
RDFNode |
ContNodeIteratorImpl.nextNode() |
RDFNode |
NTripleReader.readNode() |
RDFNode |
RDFListImpl.replace(int i,
RDFNode value)
Replace the value at the i'th position in the list with the given value.
|
RDFNode |
RDFListImpl.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> |
RDFListImpl.asJavaList()
Answer the contents of this RDF list as a Java list of RDFNode values.
|
ExtendedIterator<RDFNode> |
RDFListImpl.iterator()
Answer an iterator over the elements of the list.
|
Modifier and Type | Method and Description |
---|---|
Seq |
SeqImpl.add(int index,
RDFNode o) |
void |
RDFListImpl.add(RDFNode value)
Add the given value to the end of the list.
|
Container |
ContainerImpl.add(RDFNode n) |
Model |
ModelCom.add(Resource s,
Property p,
RDFNode o) |
Resource |
ResourceImpl.addProperty(Property p,
RDFNode o) |
static Node |
ModelCom.asNode(RDFNode x) |
Statement |
StatementBase.changeObject(RDFNode o) |
RDFList |
RDFListImpl.cons(RDFNode value)
Return a reference to a new list cell whose head is
value
and whose tail is this list. |
boolean |
ContainerImpl.containerContains(RDFNode n) |
int |
ContainerImpl.containerIndexOf(RDFNode n) |
boolean |
RDFListImpl.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 |
ContainerImpl.contains(RDFNode n) |
boolean |
ModelCom.contains(Resource s,
Property p,
RDFNode o) |
boolean |
ModelCom.containsResource(RDFNode r) |
RDFList |
ModelCom.createList(RDFNode... members)
Answer a new list containing the RDF nodes from the given array, in order
|
Statement |
ModelCom.createStatement(Resource r,
Property p,
RDFNode o)
create a Statement from the given r, p, and o.
|
boolean |
ResourceImpl.hasProperty(Property p,
RDFNode o) |
int |
RDFListImpl.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 |
SeqImpl.indexOf(RDFNode o) |
int |
RDFListImpl.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 |
ModelCom.listResourcesWithProperty(Property p,
RDFNode o) |
StmtIterator |
ModelCom.listStatements(Resource S,
Property P,
RDFNode O) |
StmtIterator |
InfModelImpl.listStatements(Resource subject,
Property predicate,
RDFNode object,
Model posit)
Find all the statements matching a pattern.
|
ResIterator |
ModelCom.listSubjectsWithProperty(Property p,
RDFNode o) |
Resource |
RDFListImpl.newListCell(RDFNode value,
Resource tail)
Construct a new list cell with the given value and tail.
|
void |
ModelReifier.noteIfReified(RDFNode s,
RDFNode p,
RDFNode o)
the triple (s, p, o) has been asserted into the model.
|
Container |
SeqImpl.remove(int index,
RDFNode o) |
Container |
ContainerImpl.remove(int index,
RDFNode object) |
RDFList |
RDFListImpl.remove(RDFNode val)
Remove the given value from this list.
|
Model |
ModelCom.remove(Resource s,
Property p,
RDFNode o) |
Model |
ModelCom.removeAll(Resource s,
Property p,
RDFNode o) |
RDFNode |
RDFListImpl.replace(int i,
RDFNode value)
Replace the value at the i'th position in the list with the given value.
|
Seq |
SeqImpl.set(int index,
RDFNode o) |
Alt |
AltImpl.setDefault(RDFNode o) |
RDFNode |
RDFListImpl.setHead(RDFNode value)
Update the head of the list to have the given value, and return the
previous value.
|
RDFList |
RDFListImpl.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 |
RDFListImpl.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 |
RDFListImpl.concatenate(Iterator<? extends RDFNode> nodes)
Add the nodes returned by the given iterator to the end of this list.
|
RDFList |
ModelCom.createList(Iterator<? extends RDFNode> members)
Answer a new list containing the resources from the given iterator, in order.
|
<T> ExtendedIterator<T> |
RDFListImpl.mapWith(Function<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 |
---|
SelectorImpl(Resource subject,
Property predicate,
RDFNode object)
Create a selector.
|
StatementImpl(Resource subject,
Property predicate,
RDFNode object) |
StatementImpl(Resource subject,
Property predicate,
RDFNode object,
ModelCom model)
Creates new StatementImpl
|
Constructor and Description |
---|
ModelCom(Graph base,
Personality<RDFNode> personality) |
NodeIteratorImpl(Iterator<? extends RDFNode> iter,
Object object)
Creates new NodeIteratorImpl
|
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