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.
|
protected abstract Model |
ModelNamespacesTest.getModelImplementation()
Implementing tests must return a new, empty, Model for each call to this method.
|
protected Model |
AbstractModelTest.getNewEmptyModel()
Helper method that asserts that the returned model is empty before returning.
|
protected abstract Model |
AbstractModelTest.getNewModel() |
protected Model |
AbstractModelTest.getNewModelObjectDoubleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectDoubleLiteral() |
protected Model |
AbstractModelTest.getNewModelObjectDoubleURI() |
protected Model |
AbstractModelTest.getNewModelObjectSingleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectSingleBNodeDoubleLiteral() |
protected Model |
AbstractModelTest.getNewModelObjectSingleBNodeDoubleURI() |
protected Model |
AbstractModelTest.getNewModelObjectSingleLiteral() |
protected Model |
AbstractModelTest.getNewModelObjectSingleLiteralDoubleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectSingleLiteralDoubleURI() |
protected Model |
AbstractModelTest.getNewModelObjectSingleLiteralSingleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectSingleLiteralSingleURI() |
protected Model |
AbstractModelTest.getNewModelObjectSingleLiteralSingleURISingleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectSingleURI() |
protected Model |
AbstractModelTest.getNewModelObjectSingleURIDoubleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectSingleURIDoubleLiteral() |
protected Model |
AbstractModelTest.getNewModelObjectSingleURISingleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectTripleBNode() |
protected Model |
AbstractModelTest.getNewModelObjectTripleLiteral() |
protected Model |
AbstractModelTest.getNewModelObjectTripleURI() |
protected Model |
AbstractModelTest.getNewModelTwoContexts() |
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 |
FilteredModel.filter(Resource s,
IRI p,
Value o,
Resource... c) |
Model |
TreeModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
Model |
LinkedHashModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
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 <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 |
DAWGTestResultSetUtil.toGraph(TupleQueryResult tqr) |
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 . |
void |
RepositoryConfig.export(Model model)
Deprecated.
|
Resource |
RepositoryImplConfig.export(Model model)
Export this
RepositoryImplConfig to its RDF representation |
Resource |
AbstractDelegatingRepositoryImplConfig.export(Model model) |
Resource |
AbstractRepositoryImplConfig.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 |
RepositoryConfig.parse(Model model,
Resource repositoryNode) |
void |
RepositoryImplConfig.parse(Model model,
Resource resource)
Reads the properties of this
RepositoryImplConfig from the supplied Model and sets them accordingly. |
void |
AbstractDelegatingRepositoryImplConfig.parse(Model model,
Resource resource) |
void |
AbstractRepositoryImplConfig.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 |
AbstractSailImplConfig.export(Model m) |
Resource |
AbstractDelegatingSailImplConfig.export(Model m) |
Resource |
SailImplConfig.export(Model graph) |
void |
AbstractSailImplConfig.parse(Model m,
Resource implNode) |
void |
AbstractDelegatingSailImplConfig.parse(Model m,
Resource implNode) |
void |
SailImplConfig.parse(Model graph,
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
Deprecated.
this feature is for internal use only: its existence, signature or behavior may change without warning
from one release to the next.
|
Modifier and Type | Method and Description |
---|---|
Model |
SailModel.filter(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Deprecated.
|
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) |
Modifier and Type | Field and Description |
---|---|
protected Model |
AbstractSHACLTest.dataGraph |
protected Model |
AbstractSHACLTest.shapesGraph |
Modifier and Type | Method and Description |
---|---|
protected Repository |
AbstractSHACLTest.createRepository(Model shapesGraph) |
junit.framework.Test |
SHACLManifestTestSuiteFactory.TestFactory.createSHACLTest(String testURI,
String label,
Model shapesGraph,
Model dataGraph,
boolean failure,
boolean conforms) |
protected void |
AbstractSHACLTest.upload(Repository rep,
Model dataGraph) |
Constructor and Description |
---|
AbstractSHACLTest(String testURI,
String label,
Model shapesGraph,
Model dataGraph,
boolean failure,
boolean conforms) |
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.