Modifier and Type | Method and Description |
---|---|
Model |
ModelFactory.createEmptyModel() |
Model |
Model.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Returns a view of the statements with the specified subject, predicate, object and (optionally) context.
|
default Model |
Model.filter(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
|
Model |
Model.unmodifiable()
Returns an unmodifiable view of this model.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractModel
Provides basic operations that are common to all Models.
|
class |
EmptyModel
Blocks access to the statements of the model, allowing only changes to the model's namespaces.
|
class |
FilteredModel
Applies a basic graph pattern filter to what triples can be see.
|
class |
LinkedHashModel
Hash table based implementation of the
Model interface. |
class |
TreeModel
A Red-Black tree based
Model implementation. |
Modifier and Type | Method and Description |
---|---|
Model |
TreeModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Model |
LinkedHashModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Model |
FilteredModel.filter(Resource s,
IRI p,
Value o,
Resource... c) |
Model |
EmptyModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Model |
AbstractModel.unmodifiable() |
Constructor and Description |
---|
EmptyModel(Model model) |
LinkedHashModel(Model model) |
TreeModel(Model model) |
Modifier and Type | Method and Description |
---|---|
Model |
ModelBuilder.build()
Return the created
Model |
static Model |
Models.setProperty(Model m,
Resource subject,
IRI property,
Value value,
Resource... contexts)
Sets the property value for the given subject to the given object value, replacing any existing value(s) for the
subject's property.
|
Modifier and Type | Method and Description |
---|---|
static Value |
Models.anyObject(Model m)
Deprecated.
since 2.0. Use
Models.object(Model) instead. |
static Literal |
Models.anyObjectLiteral(Model m)
Deprecated.
since 2.0. Use
Models.objectLiteral(Model) instead. |
static Resource |
Models.anyObjectResource(Model m)
Deprecated.
since 2.0. Use
Models.objectResource(Model) instead. |
static URI |
Models.anyObjectURI(Model m)
Deprecated.
since 2.0. Use
Models.objectIRI(Model) instead. |
static URI |
Models.anyPredicate(Model m)
Deprecated.
since 2.0. Use
Models.predicate(Model) instead. |
static Resource |
Models.anySubject(Model m)
Deprecated.
since 2.0. Use
Models.subject(Model) instead. |
static BNode |
Models.anySubjectBNode(Model m)
Deprecated.
since 2.0. Use
Models.subjectBNode(Model) instead. |
static URI |
Models.anySubjectURI(Model m)
Deprecated.
since 2.0. Use
Models.subjectIRI(Model) instead. |
static <C extends Collection<Value>> |
RDFCollections.asValues(Model m,
Resource head,
C collection,
Resource... contexts)
Converts an RDF Collection to a Java
Collection of Value objects. |
static void |
RDFCollections.consumeValues(Model m,
Resource head,
java.util.function.Consumer<Value> consumer,
Resource... contexts)
|
static void |
RDFCollections.extract(Model sourceModel,
Resource head,
java.util.function.Consumer<Statement> consumer,
Resource... contexts)
Extracts the RDF Collection starting with
supplied
head resource from the supplied source Model and sends the statements that make up the
collection to the supplied Consumer . |
static <C extends Collection<Statement>> |
RDFCollections.getCollection(Model sourceModel,
Resource head,
C sink,
Resource... contexts)
Extracts the RDF Collection starting with the
supplied
head resource from the supplied source Model . |
static Set<Value> |
Models.getProperties(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property values for the supplied subject and property from the given model.
|
static Optional<Value> |
Models.getProperty(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value for the supplied subject from the given model.
|
static Optional<IRI> |
Models.getPropertyIRI(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as an IRI for the supplied subject from the given model.
|
static Set<IRI> |
Models.getPropertyIRIs(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property IRI values for the supplied subject and property from the given model.
|
static Optional<Literal> |
Models.getPropertyLiteral(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as a
Literal for the supplied subject from the given model. |
static Set<Literal> |
Models.getPropertyLiterals(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property Literal values for the supplied subject and property from the given model.
|
static Optional<Resource> |
Models.getPropertyResource(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as an IRI for the supplied subject from the given model.
|
static Set<Resource> |
Models.getPropertyResources(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property Resource values for the supplied subject and property from the given model.
|
static Optional<String> |
Models.getPropertyString(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve a property value as a String for the supplied subject from the given model.
|
static Set<String> |
Models.getPropertyStrings(Model m,
Resource subject,
IRI property,
Resource... contexts)
Retrieve all property values as Strings for the supplied subject and property from the given model.
|
static Optional<Value> |
Models.object(Model m)
Retrieves an object
Value from the statements in the given model. |
static Optional<IRI> |
Models.objectIRI(Model m)
Retrieves an object
IRI value from the statements in the given model. |
static Set<IRI> |
Models.objectIRIs(Model m)
Retrieves all object
IRI values from the statements in the given model. |
static Optional<Literal> |
Models.objectLiteral(Model m)
Retrieves an object
Literal value from the statements in the given model. |
static Set<Literal> |
Models.objectLiterals(Model m)
Retrieves all object
Literal values from the statements in the given model. |
static Optional<Resource> |
Models.objectResource(Model m)
Retrieves an object
Resource value from the statements in the given model. |
static Set<Resource> |
Models.objectResources(Model m)
Retrieves all object
Resource values from the statements in the given model. |
static Optional<String> |
Models.objectString(Model m)
Retrieves an object value as a String from the statements in the given model.
|
static Set<String> |
Models.objectStrings(Model m)
Retrieves all object String values from the statements in the given model.
|
static Optional<IRI> |
Models.predicate(Model m)
Retrieves a predicate from the statements in the given model.
|
static Model |
Models.setProperty(Model m,
Resource subject,
IRI property,
Value value,
Resource... contexts)
Sets the property value for the given subject to the given object value, replacing any existing value(s) for the
subject's property.
|
static Optional<Resource> |
Models.subject(Model m)
Retrieves a subject
Resource from the statements in the given model. |
static Optional<BNode> |
Models.subjectBNode(Model m)
Retrieves a subject
BNode from the statements in the given model. |
static Set<BNode> |
Models.subjectBNodes(Model m)
Retrieves all subject
BNode s from the statements in the given model. |
static Optional<IRI> |
Models.subjectIRI(Model m)
Retrieves a subject
IRI from the statements in the given model. |
static Set<IRI> |
Models.subjectIRIs(Model m)
Retrieves all subject
IRI s from the statements in the given model. |
Constructor and Description |
---|
ModelBuilder(Model model)
Create a new
ModelBuilder which will append to the supplied Model . |
Modifier and Type | Method and Description |
---|---|
static Model |
QueryResults.asModel(CloseableIteration<? extends Statement,? extends RDF4JException> iteration)
Get a
Model containing all elements obtained from the specified query result. |
Modifier and Type | Method and Description |
---|---|
static Model |
RepositoryConfigUtil.getRepositoryConfigModel(Model model,
String repositoryID) |
Modifier and Type | Method and Description |
---|---|
static RepositoryConfig |
RepositoryConfig.create(Model model,
Resource repositoryNode)
Creates a new
RepositoryConfig object and initializes it by supplying the model and
repositoryNode to its parse method. |
static RepositoryImplConfig |
AbstractRepositoryImplConfig.create(Model model,
Resource resource)
Utility method to create a new
RepositoryImplConfig by reading data from the supplied Model . |
Resource |
RepositoryImplConfig.export(Model model)
Export this
RepositoryImplConfig to its RDF representation |
void |
RepositoryConfig.export(Model model)
Deprecated.
|
Resource |
AbstractRepositoryImplConfig.export(Model model) |
Resource |
AbstractDelegatingRepositoryImplConfig.export(Model model) |
void |
RepositoryConfig.export(Model model,
Resource repositoryNode)
Exports the configuration into RDF using the given repositoryNode
|
static RepositoryConfig |
RepositoryConfigUtil.getRepositoryConfig(Model model,
String repositoryID) |
static Model |
RepositoryConfigUtil.getRepositoryConfigModel(Model model,
String repositoryID) |
static Set<String> |
RepositoryConfigUtil.getRepositoryIDs(Model model) |
void |
RepositoryImplConfig.parse(Model model,
Resource resource)
Reads the properties of this
RepositoryImplConfig from the supplied Model and sets them accordingly. |
void |
RepositoryConfig.parse(Model model,
Resource repositoryNode) |
void |
AbstractRepositoryImplConfig.parse(Model model,
Resource resource) |
void |
AbstractDelegatingRepositoryImplConfig.parse(Model model,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
ContextAwareConfig.export(Model model) |
void |
ContextAwareConfig.parse(Model model,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
HTTPRepositoryConfig.export(Model graph) |
void |
HTTPRepositoryConfig.parse(Model model,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
Resource |
SailRepositoryConfig.export(Model model) |
Resource |
ProxyRepositoryConfig.export(Model model) |
void |
SailRepositoryConfig.parse(Model model,
Resource repImplNode) |
void |
ProxyRepositoryConfig.parse(Model model,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
Resource |
SPARQLRepositoryConfig.export(Model m) |
void |
SPARQLRepositoryConfig.parse(Model m,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
static Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
Adds RDF data from an
InputStream to a Model , optionally to one or more named contexts. |
static Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds RDF data from an
InputStream to a Model , optionally to one or more named contexts. |
static Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
|
static Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
|
Modifier and Type | Method and Description |
---|---|
static void |
RDFJSONWriter.modelToRdfJsonInternal(Model graph,
WriterConfig writerConfig,
com.fasterxml.jackson.core.JsonGenerator jg) |
Modifier and Type | Field and Description |
---|---|
protected Model |
TurtleWriter.prettyPrintModel
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Resource |
BaseSailConfig.export(Model graph) |
void |
BaseSailConfig.parse(Model graph,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
Resource |
SailImplConfig.export(Model graph) |
Resource |
AbstractSailImplConfig.export(Model m) |
Resource |
AbstractDelegatingSailImplConfig.export(Model m) |
void |
SailImplConfig.parse(Model graph,
Resource implNode) |
void |
AbstractSailImplConfig.parse(Model m,
Resource implNode) |
void |
AbstractDelegatingSailImplConfig.parse(Model m,
Resource implNode) |
static SailImplConfig |
SailConfigUtil.parseRepositoryImpl(Model m,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
Resource |
FederationConfig.export(Model model) |
void |
FederationConfig.parse(Model graph,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
protected abstract Model |
AbstractForwardChainingInferencerConnection.createModel() |
protected Model |
AbstractForwardChainingInferencerConnection.prepareIteration() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
AbstractForwardChainingInferencerConnection.applyRules(Model iteration)
Returns the number of newly inferred statements.
|
Modifier and Type | Method and Description |
---|---|
Resource |
CustomGraphQueryInferencerConfig.export(Model m) |
void |
CustomGraphQueryInferencerConfig.parse(Model m,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
Resource |
AbstractLuceneSailConfig.export(Model m) |
void |
AbstractLuceneSailConfig.parse(Model graph,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
Resource |
MemoryStoreConfig.export(Model graph) |
void |
MemoryStoreConfig.parse(Model graph,
Resource implNode) |
Modifier and Type | Class and Description |
---|---|
class |
SailModel
Model implementation for a
SailConnection . |
Modifier and Type | Method and Description |
---|---|
Model |
SailModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Modifier and Type | Method and Description |
---|---|
Resource |
NativeStoreConfig.export(Model m) |
void |
NativeStoreConfig.parse(Model m,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
Model |
ShaclSailValidationException.validationReportAsModel() |
Modifier and Type | Method and Description |
---|---|
Resource |
ShaclSailConfig.export(Model m) |
void |
ShaclSailConfig.parse(Model m,
Resource implNode) |
Modifier and Type | Method and Description |
---|---|
default Model |
ModelInterface.asModel() |
Model |
ValidationResult.asModel(Model model) |
Model |
ValidationReport.asModel(Model model) |
Model |
ModelInterface.asModel(Model model) |
Modifier and Type | Method and Description |
---|---|
Model |
ValidationResult.asModel(Model model) |
Model |
ValidationReport.asModel(Model model) |
Model |
ModelInterface.asModel(Model model) |
Modifier and Type | Method and Description |
---|---|
void |
SpinSailConfig.parse(Model m,
Resource implNode) |
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.