Package | Description |
---|---|
org.apache.jena.assembler | |
org.apache.jena.assembler.assemblers | |
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.listeners |
A package defining some useful implementations of
ModelChangedListener , for listening to
(a) all triples added or removed, exploding composite objects,
(b) all objects added or removed, as themselves,
(c) notification of additions/removals, but no details,
and (d) accepting but ignoring all changes, as a base-class to
be extended. |
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.rdfxml.xmlinput |
A parser for RDF/XML.
|
org.apache.jena.rdfxml.xmloutput.impl | |
org.apache.jena.reasoner |
The Jena2 reasoner subsystem is designed to allow a range of inference
engines to be plugged into Jena.
|
org.apache.jena.reasoner.rulesys |
Provides a selection of simple rule engines for Jena inference models.
|
org.apache.jena.reasoner.rulesys.impl |
Internal implementation objects used by the rule system interpreters
and compilers.
|
org.apache.jena.reasoner.transitiveReasoner |
This package contains a reasoner which supports transitive-reflexive closure
of subPropertyOf and subClassOf relations.
|
org.apache.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.
|
org.apache.jena.ttl |
Jena N3 Parser, RDF Reader and Writer
|
org.apache.jena.util |
Miscellaneous collection of utility classes.
|
Modifier and Type | Method and Description |
---|---|
Model |
Content.fill(Model m)
Answer the model
m after filling it with the contents
described by this object. |
static Model |
AssemblerHelp.fullModel(ImportManager im,
Model m)
Answer the full model of
m , with all its imports included and
with the necessary properties added from the JA schema. |
static Model |
AssemblerHelp.fullModel(Model m)
Answer the full model of
m , with all its imports included and
with the necessary properties added from the JA schema. |
static Model |
JA.getSchema() |
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. |
Model |
ImportManager.withImports(FileManager fm,
Model model)
Answer
model if it has no imports, or a union model with
model as its base and its imported models as the other
components. |
Model |
ImportManager.withImports(Model model)
Answer
model if it has no imports, or a union model with
model as its base and its imported models as the other
components. |
static Model |
ModelExpansion.withSchema(Model model,
Model schema)
Answer a new model which is the aggregation of
the statements of
model
the non-bnode subclass statements of schema
the subclass closure of those statements
the rdf:type statements implied by the rdfs:domain statements
of schema and the model
statements using that statements property
similarly for rdfs:range
the rdf:type statements implied by the subclass closure
|
Modifier and Type | Method and Description |
---|---|
static void |
ModelExpansion.addSubClassClosure(Model m)
Do (limited) subclass closure on
m . |
Model |
Content.fill(Model m)
Answer the model
m after filling it with the contents
described by this object. |
static Set<Resource> |
AssemblerHelp.findAssemblerRoots(Model model)
Answer a Set of the ja:Object resources in the full expansion of
the assembler specification model
model . |
static Set<Resource> |
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 Model |
AssemblerHelp.fullModel(ImportManager im,
Model m)
Answer the full model of
m , with all its imports included and
with the necessary properties added from the JA schema. |
static Model |
AssemblerHelp.fullModel(Model m)
Answer the full model of
m , with all its imports included and
with the necessary properties added from the JA schema. |
static void |
AssemblerHelp.loadArbitraryClasses(AssemblerGroup g,
Model m)
Load all the classes which are objects of any (t, ja:loadClass, S)
statements in
m . |
static void |
AssemblerHelp.loadAssemblerClasses(AssemblerGroup group,
Model m)
Load all the classes which are objects of any (t, ja:assembler, S) statements
in
m . |
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 . |
Model |
ImportManager.withImports(FileManager fm,
Model model)
Answer
model if it has no imports, or a union model with
model as its base and its imported models as the other
components. |
Model |
ImportManager.withImports(Model model)
Answer
model if it has no imports, or a union model with
model as its base and its imported models as the other
components. |
static Model |
ModelExpansion.withSchema(Model model,
Model schema)
Answer a new model which is the aggregation of
the statements of
model
the non-bnode subclass statements of schema
the subclass closure of those statements
the rdf:type statements implied by the rdfs:domain statements
of schema and the model
statements using that statements property
similarly for rdfs:range
the rdf:type statements implied by the subclass closure
|
Modifier and Type | Method and Description |
---|---|
Model |
OntModelAssembler.openEmptyModel(Assembler a,
Resource root,
Mode mode) |
Model |
AssemblerBase.openModel(Resource root) |
Model |
AssemblerGroup.openModel(Resource resource) |
Model |
ModelAssembler.openModel(Resource root,
Mode mode) |
Model |
AssemblerBase.openModel(Resource root,
Mode mode) |
Modifier and Type | Method and Description |
---|---|
void |
AssemblerGroup.ExpandingAssemblerGroup.loadClasses(Model model) |
Modifier and Type | Interface and Description |
---|---|
interface |
OntModel
An enhanced view of a Jena model that is known to contain ontology
data, under a given ontology
vocabulary (such as OWL). |
Modifier and Type | Method and Description |
---|---|
Model |
OntModelSpec.createBaseModel()
Answer a base model constructed according to this specification.
|
Model |
OntModelSpec.doCreateModel()
Create an OntModel according to this model specification.
|
Model |
OntModel.getBaseModel()
Answer the base model of this model.
|
Model |
OntDocumentManager.getModel(String uri)
Answer the cached model corresponding to the given document, if known.
|
Model |
OntModelSpec.implementCreateModelOver(String name)
Create an OntModel according to this model specification.
|
Model |
OntModel.write(OutputStream out)
Write a serialization of this model as an XML document.
|
Model |
OntModel.write(OutputStream out,
String lang)
Write a serialized representation of this model in a specified language.
|
Model |
OntModel.write(OutputStream out,
String lang,
String base)
Write a serialized representation of a model in a specified language.
|
Model |
OntModel.write(Writer writer)
Write the model as an XML document.
|
Model |
OntModel.write(Writer writer,
String lang)
Write a serialized representation of a model in a specified language.
|
Model |
OntModel.write(Writer writer,
String lang,
String base)
Write a serialized representation of a model in a specified language.
|
Model |
OntModel.writeAll(OutputStream out,
String lang)
Write a serialized representation of all of the contents of the model,
including inferred statements and statements imported from other
documents.
|
Model |
OntModel.writeAll(OutputStream out,
String lang,
String base)
Write a serialized representation of all of the contents of the model,
including inferred statements and statements imported from other
documents.
|
Model |
OntModel.writeAll(Writer writer,
String lang)
Write a serialized representation of all of the contents of the model,
including inferred statements and statements imported from other
documents.
|
Model |
OntModel.writeAll(Writer writer,
String lang,
String base)
Write a serialized representation of all of the contents of the model,
including inferred statements and statements imported from other
documents.
|
Modifier and Type | Method and Description |
---|---|
void |
OntDocumentManager.addModel(String docURI,
Model model)
Add an entry that
model is the appropriate model to use
for the given ontology document. |
void |
OntDocumentManager.addModel(String docURI,
Model model,
boolean replace)
Add an entry that
model is the appropriate model to use
for the given ontology document |
void |
OntModel.addSubModel(Model model)
Add the given model as one of the sub-models of the enclosed ontology union model.
|
void |
OntModel.addSubModel(Model model,
boolean rebind)
Add the given model as one of the sub-models of the enclosed ontology union model.
|
void |
OntDocumentManager.ReadHook.afterRead(Model model,
String source,
OntDocumentManager odm)
Behaviour that is invoked just after the contents of the
given source (URI or filename) have been read into the given model.
|
void |
OntDocumentManager.DefaultReadHook.afterRead(Model model,
String source,
OntDocumentManager odm) |
static OntModelSpec |
OntModelSpec.assemble(Model model)
Answer the OntModelSpec described using the Jena Assembler vocabulary
properties of the single resource in
model of type
JA:OntModelSpec. |
String |
OntDocumentManager.ReadHook.beforeRead(Model model,
String source,
OntDocumentManager odm)
Behaviour that is invoked before the contents of the
given source (URI or filename) are read into the given model.
|
String |
OntDocumentManager.DefaultReadHook.beforeRead(Model model,
String source,
OntDocumentManager odm) |
void |
OntDocumentManager.configure(Model config)
Configure this document manager using the given configuration information, after
first resetting the model back to all default values.
|
void |
OntDocumentManager.configure(Model config,
boolean reset)
Configure this document manager according to the configuration options
supplied by the given configuration model.
|
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. |
void |
OntDocumentManager.ReadFailureHandler.handleFailedRead(String url,
Model model,
Exception e)
Behaviour to invoke when the
OntDocumentManager tries and fails
to read an ontology document from a given URL. |
void |
OntModel.removeSubModel(Model model)
Remove the given model as one of the sub-models of the enclosed ontology union model.
|
void |
OntModel.removeSubModel(Model model,
boolean rebind)
Remove the given model as one of the sub-models of the enclosed ontology union model.
|
Constructor and Description |
---|
OntDocumentManager(FileManager fileMgr,
Model config)
Initialise a document manager with the given configuration model.
|
OntDocumentManager(Model config)
Initialise a document manager with the given configuration model.
|
Modifier and Type | Class and Description |
---|---|
class |
OntModelImpl
Implementation of a model that can process general ontologies in OWL
and similar languages.
|
Modifier and Type | Method and Description |
---|---|
Model |
OntModelImpl.getBaseModel()
Answer the base model of this model.
|
Model |
OntModelImpl.getDeductionsModel()
Returns a derivations model.
|
Model |
OntModelImpl.getRawModel()
Return the raw RDF model being processed (i.e.
|
Model |
OntModelImpl.read(InputStream reader,
String base)
Read statements into the model from the given source, and then load
imported ontologies (according to the document manager policy).
|
Model |
OntModelImpl.read(InputStream reader,
String base,
String syntax)
Read statements into the model from the given source, and then load
imported ontologies (according to the document manager policy).
|
Model |
OntModelImpl.read(Reader reader,
String base)
Read statements into the model from the given source, and then load
imported ontologies (according to the document manager policy).
|
Model |
OntModelImpl.read(Reader reader,
String base,
String syntax)
Read statements into the model from the given source, and then load
imported ontologies (according to the document manager policy).
|
Model |
OntModelImpl.read(String uri)
Read statements into the model from the given source, and then load
imported ontologies (according to the document manager policy).
|
Model |
OntModelImpl.read(String uri,
String syntax)
Read statements into the model from the given source, and then load
imported ontologies (according to the document manager policy).
|
Model |
OntModelImpl.read(String uri,
String base,
String syntax)
Read statements into the model from the given source, and then load
imported ontologies (according to the document manager policy).
|
Model |
OntModelImpl.write(OutputStream out) |
Model |
OntModelImpl.write(OutputStream out,
String lang) |
Model |
OntModelImpl.write(OutputStream out,
String lang,
String base) |
Model |
OntModelImpl.write(Writer writer) |
Model |
OntModelImpl.write(Writer writer,
String lang) |
Model |
OntModelImpl.write(Writer writer,
String lang,
String base) |
Model |
OntModelImpl.writeAll(OutputStream out,
String lang) |
Model |
OntModelImpl.writeAll(OutputStream out,
String lang,
String base) |
Model |
OntModelImpl.writeAll(Writer writer,
String lang) |
Model |
OntModelImpl.writeAll(Writer writer,
String lang,
String base) |
Modifier and Type | Method and Description |
---|---|
void |
OntModelImpl.addSubModel(Model model)
Add the given model as one of the sub-models of the enclosed ontology union model.
|
void |
OntModelImpl.addSubModel(Model model,
boolean rebind)
Add the given model as one of the sub-models of the enclosed ontology union model.
|
Property |
OntPropertyImpl.inModel(Model m)
Answer a property that is attached to the given model, which will either
be this property or a new property object with the same URI in the given
model.
|
StmtIterator |
OntModelImpl.listStatements(Resource subject,
Property predicate,
RDFNode object,
Model posit)
Find all the statements matching a pattern.
|
void |
OntModelImpl.removeSubModel(Model model)
Remove the given model as one of the sub-models of the enclosed ontology union model.
|
void |
OntModelImpl.removeSubModel(Model model,
boolean rebind)
Remove the given model as one of the sub-models of the enclosed ontology union model.
|
Constructor and Description |
---|
OntModelImpl(OntModelSpec spec,
Model model)
Construct a new ontology model, using the given model as a base.
|
Modifier and Type | Method and Description |
---|---|
void |
ObjectListener.addedStatements(Model m) |
void |
NullListener.addedStatements(Model m) |
void |
StatementListener.addedStatements(Model m) |
void |
ChangedListener.addedStatements(Model m) |
void |
ObjectListener.notifyEvent(Model m,
Object event) |
void |
NullListener.notifyEvent(Model m,
Object event) |
void |
StatementListener.notifyEvent(Model m,
Object event) |
void |
ChangedListener.notifyEvent(Model m,
Object event) |
void |
ObjectListener.removedStatements(Model m) |
void |
NullListener.removedStatements(Model m) |
void |
StatementListener.removedStatements(Model m) |
void |
ChangedListener.removedStatements(Model m) |
Modifier and Type | Interface and Description |
---|---|
interface |
InfModel
An extension to the normal Model interface that supports access to any
underlying inference capability.
|
Modifier and Type | Method and Description |
---|---|
Model |
Model.abort()
Abort the current transaction and abandon any changes in progress.
|
Model |
Model.add(List<Statement> statements)
add all the statements in the List to this Model, going through the bulk
update interface (which means turning them into triples in one form or
another).
|
Model |
Model.add(Model m)
Add all the statements in another model to this model, including the
reified statements.
|
Model |
ModelCon.add(Resource s,
Property p,
RDFNode o)
add a statement to this model.
|
Model |
ModelCon.add(Resource s,
Property p,
String o)
add a statement to this model.
|
Model |
ModelCon.add(Resource s,
Property p,
String o,
boolean wellFormed)
add a statement to this model.
|
Model |
ModelCon.add(Resource s,
Property p,
String lex,
RDFDatatype datatype)
add a statement to this model.
|
Model |
ModelCon.add(Resource s,
Property p,
String o,
String l)
add a statement to this model.
|
Model |
Model.add(Statement s)
Add a statement to this model.
|
Model |
Model.add(Statement[] statements)
Add all the statements to the Model, using through the bulk update interface.
|
Model |
Model.add(StmtIterator iter)
Add all the statements returned by an iterator to this model.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
boolean o)
Add the statement (s, p, createTypedLiteral( o )) to this model and
answer this model.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
char o)
Add the statement (s, p, createTypedLiteral( o )) to this model and
answer this model.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
double o)
Add the statement (s, p, o') to the model, where o' is the typed
literal corresponding to o.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
float o)
Add the statement (s, p, o') to the model, where o' is the typed
literal corresponding to o.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
int o)
Add the statement (s, p, createTypedLiteral( o )) to this model and
answer this model.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
Literal o)
add a statement to this model.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
long o)
Add the statement (s, p, createTypedLiteral( o )) to this model and
answer this model.
|
Model |
ModelCon.addLiteral(Resource s,
Property p,
Object o)
Deprecated.
Freshly (should have been done a while ago)
|
static Model |
ModelFactory.assembleModelFrom(Model singleRoot)
Answer a Model constructed from the single resource in
singleRoot of type ja:Model . |
static Model |
ModelFactory.assembleModelFrom(Resource root)
Answer a Model as described the Assembler specification rooted
at the Resource
root in its Model. |
Model |
Model.begin()
Begin a new transaction.
|
Model |
Model.clearNsPrefixMap() |
Model |
Model.commit()
Commit the current transaction.
|
Model |
ModelSource.createDefaultModel()
Answer this ModelSource's default model.
|
static Model |
ModelFactory.createDefaultModel()
Answer a fresh Model with the default specification.
|
Model |
ModelSource.createFreshModel()
Answer a Model that satisfies this ModelSource's shape.
|
Model |
ModelMaker.createModel(String name)
Create a Model with the given name if no such model exists.
|
Model |
ModelMaker.createModel(String name,
boolean strict)
Create a new Model associated with the given name.
|
static Model |
ModelFactory.createModelForGraph(Graph g)
Answer a model that encapsulates the given graph.
|
static Model |
ModelFactory.createUnion(Model m1,
Model m2)
Answer a new model that is the dynamic union of two other models.
|
Model |
Model.difference(Model model)
Create a new, independant, model containing all the statements in this model which
are not in another.
|
Model |
ModelExtract.extract(Resource r,
Model s)
Answer the rooted sub-model.
|
Model |
ModelExtract.extractInto(Model model,
Resource r,
Model s)
Answer
model after updating it with the sub-graph of
s rooted at r , bounded by this instances
boundary . |
Model |
InfModel.getDeductionsModel()
Returns a derivations model.
|
Model |
Statement.getModel()
get the Model this Statement was created in.
|
Model |
RDFNode.getModel()
Return the model associated with this resource.
|
Model |
ModelGetter.getModel(String URL)
Answer a Model whose content is that associated with the URL, if possible,
and otherwise answer null.
|
Model |
ModelGetter.getModel(String URL,
ModelReader loadIfAbsent)
Answer a model appropriate for
URL , If none is to hand,
and it's possible to create one, create it and load it using loadIfAbsent . |
Model |
InfModel.getRawModel()
Return the raw RDF model being processed (i.e.
|
Model |
Model.intersection(Model model)
Create a new, independant, model containing all the statements which are in both
this model and another.
|
Model |
Model.notifyEvent(Object e)
Notify any listeners that the event e has occurred.
|
Model |
ModelSource.openModel(String name)
Answer a model.
|
Model |
ModelMaker.openModel(String name,
boolean strict)
Find an existing Model that this factory knows about under the given
name.
|
Model |
ModelSource.openModelIfPresent(String string)
Answer the model named by
string in this ModelSource,
if it [still] has one, or null if there isn't one. |
Model |
Model.query(Selector s)
Create a new model containing the statements matching a query.
|
Model |
Model.read(InputStream in,
String base)
Add statements from a document.
|
Model |
Model.read(InputStream in,
String base,
String lang)
Add RDF statements represented in language
lang to the model. |
Model |
Model.read(Reader reader,
String base)
Using this method is often a mistake.
|
Model |
Model.read(Reader reader,
String base,
String lang)
Using this method is often a mistake.
|
Model |
Model.read(String url)
Add the RDF statements from a document.
|
Model |
Model.read(String url,
String lang)
Add statements from a serializion in language
lang to the
model. |
Model |
Model.read(String url,
String base,
String lang)
Read into this model the RDF at
url , using
baseURI as the base URI if it is non-null. |
Model |
ModelReader.readModel(Model toRead,
String URL)
Read the contents of
URL into toRead and
answer toRead , |
Model |
Model.register(ModelChangedListener listener)
Register a listener for model-changed events on this model.
|
Model |
Model.remove(List<Statement> statements)
Remove all the statements in the list from this model, using the bulk
update interface.
|
Model |
ModelCon.remove(Model m)
Remove all the Statements in a given model, including reified statements
|
Model |
ModelCon.remove(Resource s,
Property p,
RDFNode o)
remove the statement
(s, p, o) from this model and
answer this model. |
Model |
Model.remove(Statement s)
Removes a statement.
|
Model |
Model.remove(Statement[] statements)
Remove all the statements from the Model, using the bulk update interface.
|
Model |
ModelCon.remove(StmtIterator iter)
Remove all the Statements returned by an iterator.
|
Model |
Model.removeAll()
Remove all the statements from this model.
|
Model |
Model.removeAll(Resource s,
Property p,
RDFNode r)
Remove all the statements matching (s, p, o) from this model.
|
Model |
Model.removeNsPrefix(String prefix) |
Model |
Model.setNsPrefix(String prefix,
String uri) |
Model |
Model.setNsPrefixes(Map<String,String> map) |
Model |
Model.setNsPrefixes(PrefixMapping other) |
default Model |
StmtIterator.toModel()
Answer a Model of the [remaining] Statements of this iterator, consuming this
iterator.
|
Model |
Model.union(Model model)
Create a new, independant, model containing all the statements in this model
together with all of those in another given model.
|
Model |
Model.unregister(ModelChangedListener listener)
Unregister a listener from model-changed events on this model.
|
Model |
Model.withDefaultMappings(PrefixMapping map) |
Model |
Model.write(OutputStream out)
Write a serialization of this model as an XML document.
|
Model |
Model.write(OutputStream out,
String lang)
Write a serialized representation of this model in a specified language.
|
Model |
Model.write(OutputStream out,
String lang,
String base)
Write a serialized representation of a model in a specified language.
|
Model |
Model.write(Writer writer)
Write the model as an XML document.
|
Model |
Model.write(Writer writer,
String lang)
Write a serialized representation of a model in a specified language.
|
Model |
Model.write(Writer writer,
String lang,
String base)
Write a serialized representation of a model in a specified language.
|
Modifier and Type | Method and Description |
---|---|
Model |
Model.add(Model m)
Add all the statements in another model to this model, including the
reified statements.
|
void |
ModelChangedListener.addedStatements(Model m)
Method to call when a model has been used to define the statements to
be added to our attached model.
|
static Model |
ModelFactory.assembleModelFrom(Model singleRoot)
Answer a Model constructed from the single resource in
singleRoot of type ja:Model . |
TripleBoundary |
StatementBoundaryBase.asTripleBoundary(Model m)
Expresses this StatementBoundary as a TripleBoundary.
|
TripleBoundary |
StatementBoundary.asTripleBoundary(Model m)
Answer a TripleBoundary corresponding to this StatementBoundary,
where Triples may be converted to Statements using
m . |
TripleBoundary |
StatementTripleBoundary.asTripleBoundary(Model ignored)
Answer the supplied-to-constructor TripleBoundary.
|
boolean |
Model.containsAll(Model model)
Determine if all of the statements in a model are also contained
in this model.
|
boolean |
Model.containsAny(Model model)
Determine if any of the statements in a model are also contained
in this model.
|
static TripleBoundary |
StatementBoundaryBase.convert(Model s,
StatementBoundary b)
Answer a TripleBoundary that is implemented in terms of a StatementBoundary.
|
static InfModel |
ModelFactory.createInfModel(Reasoner reasoner,
Model model)
Build an inferred model by attaching the given RDF model to the given reasoner.
|
static InfModel |
ModelFactory.createInfModel(Reasoner reasoner,
Model schema,
Model model)
Build an inferred model by attaching the given RDF model to the given reasoner.
|
static OntModel |
ModelFactory.createOntologyModel(OntModelSpec spec,
Model base)
Answer a new ontology model, constructed according to the given ontology model specification,
and starting with the ontology data in the given model.
|
static OntModel |
ModelFactory.createOntologyModel(OntModelSpec spec,
ModelMaker maker,
Model base)
Answer a new ontology model which will process in-memory models of
ontologies expressed the default ontology language (OWL).
|
static InfModel |
ModelFactory.createRDFSModel(Model model)
Return a Model through which all the RDFS entailments
derivable from the given model are accessible.
|
static InfModel |
ModelFactory.createRDFSModel(Model schema,
Model model)
Return a Model through which all the RDFS entailments
derivable from the given data and schema models are accessible.
|
static Model |
ModelFactory.createUnion(Model m1,
Model m2)
Answer a new model that is the dynamic union of two other models.
|
Model |
Model.difference(Model model)
Create a new, independant, model containing all the statements in this model which
are not in another.
|
Model |
ModelExtract.extract(Resource r,
Model s)
Answer the rooted sub-model.
|
Model |
ModelExtract.extractInto(Model model,
Resource r,
Model s)
Answer
model after updating it with the sub-graph of
s rooted at r , bounded by this instances
boundary . |
static Set<Resource> |
ModelFactory.findAssemblerRoots(Model m)
Answer a Set of resources present in
m that are
explicitly or implicitly of type ja:Object, ie, suitable as roots for
assemblerModelFrom . |
Property |
Property.inModel(Model m)
Override RDFNode.inModel() to produce a staticly-typed Property
in the given Model.
|
RDFNode |
RDFNode.inModel(Model m)
Answer a .equals() version of this node, except that it's in the model
m . |
Literal |
Literal.inModel(Model m)
Answer a version of this literal in the model m.
|
Resource |
Resource.inModel(Model m)
Override RDFNode.inModel() to produce a statically-typed Resource
in the given Model.
|
Model |
Model.intersection(Model model)
Create a new, independant, model containing all the statements which are in both
this model and another.
|
boolean |
Model.isIsomorphicWith(Model g)
Compare this Model with another for equality ignoring the labels on
bNodes.
|
StmtIterator |
InfModel.listStatements(Resource subject,
Property predicate,
RDFNode object,
Model posit)
Find all the statements matching a pattern.
|
void |
ModelChangedListener.notifyEvent(Model m,
Object event) |
void |
RDFReader.read(Model model,
InputStream r,
String base)
Read serialized RDF from an
InputStream and add the statements
to a Model . |
void |
RDFReader.read(Model model,
Reader r,
String base)
It is usually a mistake to use this method.
|
void |
RDFReader.read(Model model,
String url)
Read serialized RDF from a url and add the statements to a model.
|
Model |
ModelReader.readModel(Model toRead,
String URL)
Read the contents of
URL into toRead and
answer toRead , |
Model |
ModelCon.remove(Model m)
Remove all the Statements in a given model, including reified statements
|
void |
ModelChangedListener.removedStatements(Model m)
Method to call when a model has been used to remove statements from
our attached model.
|
Model |
Model.union(Model model)
Create a new, independant, model containing all the statements in this model
together with all of those in another given model.
|
void |
RDFWriter.write(Model model,
OutputStream out,
String base)
Serialize Model
model to OutputStream out. |
void |
RDFWriter.write(Model model,
Writer out,
String base)
Caution: Serialize Model
model to Writer out . |
Modifier and Type | Class and Description |
---|---|
class |
InfModelImpl
Default implementation of the InfModel interface which simply wraps up
an InfGraph.
|
class |
ModelCom
Common methods for model implementations.
|
Modifier and Type | Method and Description |
---|---|
Model |
ModelCom.abort() |
Model |
ModelCom.add(List<Statement> statements)
Add all the statements to the model by converting the list to an array of
Statement and removing that.
|
Model |
ModelCom.add(Model m) |
Model |
ModelCom.add(Resource s,
Property p,
RDFNode o) |
Model |
ModelCom.add(Resource s,
Property p,
String o) |
Model |
ModelCom.add(Resource s,
Property p,
String o,
boolean wellFormed) |
Model |
ModelCom.add(Resource s,
Property p,
String lex,
RDFDatatype datatype) |
Model |
ModelCom.add(Resource s,
Property p,
String o,
String l) |
Model |
ModelCom.add(Resource s,
Property p,
String o,
String lang,
boolean wellFormed) |
Model |
ModelCom.add(Statement s)
add a Statement to this Model by adding its SPO components.
|
Model |
ModelCom.add(Statement[] statements)
Add all the statements to the model by converting them to an array of corresponding
triples and removing those from the underlying graph.
|
Model |
ModelCom.add(StmtIterator iter) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
boolean o) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
char o) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
double o) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
float o) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
int o) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
Literal o) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
long o) |
Model |
ModelCom.addLiteral(Resource s,
Property p,
Object o)
Deprecated.
|
Model |
ModelCom.asModel(Graph g) |
Model |
ModelCom.begin() |
Model |
ModelCom.clearNsPrefixMap() |
Model |
ModelCom.commit() |
Model |
ModelMakerImpl.createDefaultModel() |
Model |
ModelMakerImpl.createFreshModel() |
Model |
ModelMakerImpl.createModel(String name) |
Model |
ModelMakerImpl.createModel(String name,
boolean strict) |
Model |
ModelMakerImpl.createModelOver(String name) |
Model |
ModelCom.difference(Model model) |
Model |
InfModelImpl.getDeductionsModel()
Returns a derivations model.
|
Model |
LiteralImpl.getModel()
Answer the model this literal was created in, if any, otherwise null.
|
Model |
ResourceImpl.getModel() |
Model |
StatementBase.getModel() |
Model |
MemoryModelGetter.getModel(String URL) |
Model |
ModelMakerImpl.getModel(String URL)
ModelGetter implementation component.
|
Model |
MemoryModelGetter.getModel(String URL,
ModelReader loadIfAbsent) |
Model |
ModelMakerImpl.getModel(String URL,
ModelReader loadIfAbsent) |
Model |
InfModelImpl.getRawModel()
Return the raw RDF model being processed (i.e.
|
static Model |
ModelCom.intersect(Model smaller,
Model larger)
Answer a Model that is the intersection of the two argument models.
|
Model |
ModelCom.intersection(Model other)
Intersect this with another model.
|
Model |
ModelCom.notifyEvent(Object e) |
Model |
ModelMakerImpl.openModel() |
Model |
ModelMakerImpl.openModel(String name) |
Model |
ModelMakerImpl.openModel(String name,
boolean strict) |
Model |
ModelMakerImpl.openModelIfPresent(String name) |
Model |
ModelCom.query(Selector selector) |
Model |
ModelCom.read(InputStream reader,
String base) |
Model |
ModelCom.read(InputStream reader,
String base,
String lang) |
Model |
ModelCom.read(Reader reader,
String base) |
Model |
ModelCom.read(Reader reader,
String base,
String lang) |
Model |
ModelCom.read(String url) |
Model |
ModelCom.read(String url,
String lang) |
Model |
ModelCom.read(String url,
String base,
String lang) |
Model |
ModelCom.register(ModelChangedListener listener)
Register the listener with this model by registering its GraphListener
adaption with the underlying Graph.
|
Model |
ModelCom.remove(List<Statement> statements)
Remove all the Statements from the model by converting the List to a
List(Statement) and removing that.
|
Model |
ModelCom.remove(Model m) |
Model |
ModelCom.remove(Resource s,
Property p,
RDFNode o) |
Model |
ModelCom.remove(Statement s) |
Model |
ModelCom.remove(Statement[] statements)
remove all the Statements from the model by converting them to triples and
removing those triples from the underlying graph.
|
Model |
ModelCom.remove(StmtIterator iter) |
Model |
ModelCom.removeAll() |
Model |
ModelCom.removeAll(Resource s,
Property p,
RDFNode o) |
Model |
ModelCom.removeNsPrefix(String prefix) |
Model |
ModelCom.setNsPrefix(String prefix,
String uri) |
Model |
ModelCom.setNsPrefixes(Map<String,String> map) |
Model |
ModelCom.setNsPrefixes(PrefixMapping pm) |
Model |
ModelCom.union(Model model) |
Model |
ModelCom.unregister(ModelChangedListener listener)
Unregister the listener from this model by unregistering its GraphListener
adaption from the underlying Graph.
|
Model |
ModelCom.withDefaultMappings(PrefixMapping other) |
Model |
ModelCom.write(OutputStream writer) |
Model |
ModelCom.write(OutputStream writer,
String lang) |
Model |
ModelCom.write(OutputStream writer,
String lang,
String base) |
Model |
ModelCom.write(Writer writer) |
Model |
ModelCom.write(Writer writer,
String lang) |
Model |
ModelCom.write(Writer writer,
String lang,
String base) |
Modifier and Type | Method and Description |
---|---|
Model |
ModelCom.add(Model m) |
static void |
ModelCom.addNamespaces(Model m,
Map<String,Set<String>> ns)
Service method to update the namespaces of a Model given the
mappings from prefix names to sets of URIs.
|
boolean |
ModelCom.containsAll(Model model) |
boolean |
ModelCom.containsAny(Model model) |
Model |
ModelCom.difference(Model model) |
Literal |
LiteralImpl.inModel(Model m)
Literals are not in any particular model, and so inModel can return this.
|
Resource |
ResourceImpl.inModel(Model m) |
Property |
PropertyImpl.inModel(Model m) |
static Model |
ModelCom.intersect(Model smaller,
Model larger)
Answer a Model that is the intersection of the two argument models.
|
Model |
ModelCom.intersection(Model other)
Intersect this with another model.
|
boolean |
ModelCom.isIsomorphicWith(Model m)
Answer whether or not these two graphs are isomorphic.
|
StmtIterator |
InfModelImpl.listStatements(Resource subject,
Property predicate,
RDFNode object,
Model posit)
Find all the statements matching a pattern.
|
void |
NTripleReader.read(Model model,
InputStream in,
String base) |
void |
NTripleReader.read(Model model,
Reader reader,
String base) |
void |
NTripleReader.read(Model model,
String url) |
Model |
ModelCom.remove(Model m) |
Model |
ModelCom.union(Model model) |
void |
NTripleWriter.write(Model model,
OutputStream out,
String base) |
static void |
NTripleWriter.write(Model model,
PrintWriter writer) |
void |
NTripleWriter.write(Model model,
Writer writer,
String base) |
Modifier and Type | Method and Description |
---|---|
static SAX2Model |
SAX2Model.create(String base,
Model m)
Factory method to create a new SAX2Model.
|
static SAX2Model |
SAX2Model.create(String base,
Model m,
String lang)
Factory method to create a new SAX2Model.
|
static DOM2Model |
DOM2Model.createD2M(String base,
Model m)
Create a new DOM2Model.
|
static DOM2Model |
DOM2Model.createD2M(String base,
Model m,
String lang)
Create a new DOM2Model.
|
void |
JenaReader.read(Model m,
InputStream in,
String xmlBase)
Reads from inputStream, using base URI xmlbase, adding triples to model.
|
void |
JenaReader.read(Model m,
Reader reader,
String xmlBase)
Reads from reader, using base URI xmlbase, adding triples to model.
|
void |
JenaReader.read(Model m,
String url)
Reads from url, using url as base, adding triples to model.
|
static void |
StAX2Model.read(XMLEventReader eventReader,
Model model) |
static void |
StAX2Model.read(XMLEventReader eventReader,
Model model,
String base) |
static void |
StAX2Model.read(XMLStreamReader streamReader,
Model model) |
static void |
StAX2Model.read(XMLStreamReader streamReader,
Model model,
String base) |
Modifier and Type | Method and Description |
---|---|
void |
BaseXMLWriter.write(Model model,
OutputStream out,
String base)
Write out an XML serialization of a model.
|
void |
BaseXMLWriter.write(Model model,
Writer out,
String base)
Serialize Model
model to Writer out. |
Modifier and Type | Method and Description |
---|---|
Model |
ReasonerRegistry.getAllDescriptions()
Return a composite set of RDF capability descriptions for all registered reasoners.
|
Model |
ReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
Reasoner.getReasonerCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Modifier and Type | Method and Description |
---|---|
void |
Reasoner.addDescription(Model configSpec,
Resource base)
Add a configuration description for this reasoner into a partial
configuration specification model.
|
Reasoner |
Reasoner.bindSchema(Model tbox)
This is most commonly used to attach an ontology (a set of tbox
axioms in description logics jargon) to a reasoner.
|
Modifier and Type | Method and Description |
---|---|
Model |
OWLFBRuleReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
OWLMicroReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
RDFSFBRuleReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
OWLMiniReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
RDFSRuleReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
GenericRuleReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
FBRuleReasoner.getReasonerCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
LPBackwardRuleReasoner.getReasonerCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
BasicForwardRuleReasoner.getReasonerCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Modifier and Type | Method and Description |
---|---|
void |
FBRuleReasoner.addDescription(Model configSpec,
Resource base)
Add a configuration description for this reasoner into a partial
configuration specification model.
|
void |
LPBackwardRuleReasoner.addDescription(Model configSpec,
Resource base)
Add a configuration description for this reasoner into a partial
configuration specification model.
|
void |
BasicForwardRuleReasoner.addDescription(Model configSpec,
Resource base)
Add a configuration description for this reasoner into a partial
configuration specification model.
|
Reasoner |
FBRuleReasoner.bindSchema(Model tbox)
Precompute the implications of a schema Model.
|
Reasoner |
LPBackwardRuleReasoner.bindSchema(Model tbox)
Precompute the implications of a schema Model.
|
Reasoner |
BasicForwardRuleReasoner.bindSchema(Model tbox)
Precompute the implications of a schema Model.
|
Modifier and Type | Method and Description |
---|---|
Model |
WrappedReasonerFactory.getCapabilities()
Answer the capabilities of the underlying ReasonerFactory.
|
Modifier and Type | Method and Description |
---|---|
Model |
TransitiveReasonerFactory.getCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Model |
TransitiveReasoner.getReasonerCapabilities()
Return a description of the capabilities of this reasoner encoded in
RDF.
|
Modifier and Type | Method and Description |
---|---|
void |
TransitiveReasoner.addDescription(Model configSpec,
Resource base)
Add a configuration description for this reasoner into a partial
configuration specification model.
|
Reasoner |
TransitiveReasoner.bindSchema(Model tbox)
Extracts all of the subClass and subProperty declarations from
the given schema/tbox and caches the resultant graphs.
|
Modifier and Type | Field and Description |
---|---|
Model |
BadDescriptionException.badModel |
Modifier and Type | Method and Description |
---|---|
static Model |
RandomOrderGraph.createDefaultModel() |
Constructor and Description |
---|
BadDescriptionException(String message,
Model badModel) |
BadDescriptionMultipleRootsException(Model badModel,
Resource type) |
BadDescriptionNoRootException(Model badModel,
Resource type) |
Modifier and Type | Method and Description |
---|---|
void |
JenaReaderBase.read(Model model,
InputStream in,
String base) |
void |
JenaReaderBase.read(Model model,
Reader r,
String base) |
void |
JenaReaderBase.read(Model model,
String url) |
Modifier and Type | Class and Description |
---|---|
class |
MonitorModel
Model wrapper which provides normal access to an underlying model but
also maintains a snapshot of the triples it was last known to contain.
|
Modifier and Type | Method and Description |
---|---|
Model |
FileManager.getFromCache(String filenameOrURI)
Deprecated.
|
Model |
FileManagerImpl.getFromCache(String filenameOrURI)
Read out of the cache - return null if not in the cache
|
default Model |
FileManager.loadModel(String filenameOrURI)
Deprecated.
Use
RDFDataMgr |
Model |
FileManager.loadModel(String filenameOrURI,
String rdfSyntax)
Deprecated.
Use
RDFDataMgr |
Model |
FileManagerImpl.loadModel(String filenameOrURI,
String rdfSyntax)
Load a model from a file (local or remote).
|
Model |
FileManager.loadModel(String filenameOrURI,
String baseURI,
String rdfSyntax)
Deprecated.
Use
RDFDataMgr |
Model |
FileManagerImpl.loadModel(String filenameOrURI,
String baseURI,
String rdfSyntax)
Load a model from a file (local or remote).
|
Model |
FileManager.loadModelInternal(String filenameOrURI)
For use within Jena libraries only.
|
Model |
FileManagerImpl.loadModelInternal(String filenameOrURI)
Load a model from a file (local or remote).
|
static Model |
ResourceUtils.reachableClosure(Resource root)
Answer a model that contains all of the resources reachable from a given
resource by any property, transitively.
|
default Model |
FileManager.readModel(Model model,
String filenameOrURI)
Deprecated.
Use
RDFDataMgr |
Model |
FileManager.readModel(Model model,
String filenameOrURI,
String rdfSyntax)
Deprecated.
Use
RDFDataMgr |
Model |
FileManagerImpl.readModel(Model model,
String filenameOrURI,
String rdfSyntax)
Read a file of RDF into a model.
|
Model |
FileManager.readModel(Model model,
String filenameOrURI,
String baseURI,
String syntax)
Deprecated.
|
Model |
FileManagerImpl.readModel(Model model,
String filenameOrURI,
String baseURI,
String syntax)
Read a file of RDF into a model.
|
Model |
FileManager.readModelInternal(Model model,
String filenameOrURI)
For use within Jena libraries only.
|
Model |
FileManagerImpl.readModelInternal(Model model,
String filenameOrURI)
Read a file of RDF into a model.
|
Model |
LocationMapper.toModel() |
Modifier and Type | Method and Description |
---|---|
BiConsumer<Model,Model> |
ModelCollector.ConcurrentModelCollector.accumulator() |
BiConsumer<Model,Model> |
ModelCollector.ConcurrentModelCollector.accumulator() |
BiConsumer<Model,Model> |
ModelCollector.UnionModelCollector.accumulator() |
BiConsumer<Model,Model> |
ModelCollector.UnionModelCollector.accumulator() |
BiConsumer<Model,Model> |
ModelCollector.IntersectionModelCollector.accumulator() |
BiConsumer<Model,Model> |
ModelCollector.IntersectionModelCollector.accumulator() |
BinaryOperator<Model> |
ModelCollector.ConcurrentModelCollector.combiner() |
BinaryOperator<Model> |
ModelCollector.UnionModelCollector.combiner() |
BinaryOperator<Model> |
ModelCollector.IntersectionModelCollector.combiner() |
Supplier<Model> |
ModelCollector.supplier() |
Modifier and Type | Method and Description |
---|---|
void |
FileManager.addCacheModel(String uri,
Model m)
Deprecated.
|
void |
FileManagerImpl.addCacheModel(String uri,
Model m) |
void |
LocationMapper.processConfig(Model m) |
default Model |
FileManager.readModel(Model model,
String filenameOrURI)
Deprecated.
Use
RDFDataMgr |
Model |
FileManager.readModel(Model model,
String filenameOrURI,
String rdfSyntax)
Deprecated.
Use
RDFDataMgr |
Model |
FileManagerImpl.readModel(Model model,
String filenameOrURI,
String rdfSyntax)
Read a file of RDF into a model.
|
Model |
FileManager.readModel(Model model,
String filenameOrURI,
String baseURI,
String syntax)
Deprecated.
|
Model |
FileManagerImpl.readModel(Model model,
String filenameOrURI,
String baseURI,
String syntax)
Read a file of RDF into a model.
|
Model |
FileManager.readModelInternal(Model model,
String filenameOrURI)
For use within Jena libraries only.
|
Model |
FileManagerImpl.readModelInternal(Model model,
String filenameOrURI)
Read a file of RDF into a model.
|
void |
LocationMapper.toModel(Model model) |
Constructor and Description |
---|
LocationMapper(Model model)
Deprecated.
Use
StreamManager and LocationMapper from org.apache.jena.riot.system.stream . |
MonitorModel(Model base)
Create a monitor over the given underlying base model.
|
Licenced under the Apache License, Version 2.0