Package | Description |
---|---|
org.apache.commons.rdf.api |
Commons RDF, a common library of RDF 1.1 concepts.
|
org.apache.commons.rdf.jena | |
org.apache.commons.rdf.jena.impl | |
org.apache.commons.rdf.jsonldjava |
Integration with jsonld-java
|
org.apache.commons.rdf.rdf4j |
Commons RDF integration with RDF4J.
|
org.apache.commons.rdf.simple |
A simple in-memory implementation of the Commons RDF API.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BlankNode
A RDF-1.1
Blank Node, as defined by
RDF-1.1
Concepts and Abstract Syntax, a W3C Recommendation published on 25
February 2014.
Note: Blank nodes are disjoint from IRIs and literals. |
interface |
IRI
An RDF-1.1 IRI,
as defined by RDF-1.1
Concepts and Abstract Syntax, a W3C Recommendation published on 25
February 2014.
|
Modifier and Type | Method and Description |
---|---|
BlankNodeOrIRI |
Triple.getSubject()
The subject of this triple, which may be either a
BlankNode or an
IRI , which are represented in Commons RDF by the interface
BlankNodeOrIRI . |
BlankNodeOrIRI |
Quad.getSubject()
The subject of this quad, which may be either a
BlankNode or an
IRI , which are represented in Commons RDF by the interface
BlankNodeOrIRI . |
Modifier and Type | Method and Description |
---|---|
Optional<BlankNodeOrIRI> |
Quad.getGraphName()
The graph name (graph label) of this quad, if present.
|
Stream<BlankNodeOrIRI> |
Dataset.getGraphNames()
Get the graph names in this Dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
Dataset.add(BlankNodeOrIRI graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Add a quad to the dataset, possibly mapping any of the components to
those supported by this dataset.
|
void |
Graph.add(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Adds a triple to the graph, possibly mapping any of the components to
those supported by this Graph.
|
boolean |
Graph.contains(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Checks if graph contains a pattern of triples.
|
boolean |
Dataset.contains(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Check if dataset contains a pattern of quads.
|
Quad |
RDF.createQuad(BlankNodeOrIRI graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Create a quad.
|
Triple |
RDF.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Create a triple.
|
default Triple |
RDFTermFactory.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Deprecated.
|
Optional<Graph> |
Dataset.getGraph(BlankNodeOrIRI graphName)
Get a named graph in this dataset.
|
default Stream<? extends Triple> |
Graph.getTriples(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Deprecated.
|
default Iterable<Triple> |
Graph.iterate(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Gets an Iterable for iterating over the triples in the graph that match
the pattern.
|
default Iterable<Quad> |
Dataset.iterate(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get an Iterable for iterating over the quads in the dataset that match
the pattern.
|
void |
Graph.remove(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Removes a concrete pattern of triples from the graph.
|
void |
Dataset.remove(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Remove a concrete pattern of quads from the default graph of the dataset.
|
Stream<? extends Triple> |
Graph.stream(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Gets all triples contained by the graph matched with the pattern.
|
Stream<? extends Quad> |
Dataset.stream(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get all quads contained by the dataset matched with the pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Dataset.contains(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Check if dataset contains a pattern of quads.
|
default Iterable<Quad> |
Dataset.iterate(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get an Iterable for iterating over the quads in the dataset that match
the pattern.
|
void |
Dataset.remove(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Remove a concrete pattern of quads from the default graph of the dataset.
|
Stream<? extends Quad> |
Dataset.stream(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get all quads contained by the dataset matched with the pattern.
|
Modifier and Type | Interface and Description |
---|---|
interface |
JenaBlankNode
A Jena-backed
BlankNode . |
interface |
JenaIRI
A Jena-backed
IRI . |
Modifier and Type | Method and Description |
---|---|
JenaQuad |
JenaRDF.createQuad(BlankNodeOrIRI graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Create a quad.
|
JenaTriple |
JenaRDF.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Modifier and Type | Method and Description |
---|---|
JenaQuad |
InternalJenaFactory.createQuad(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object,
BlankNodeOrIRI graphName) |
JenaTriple |
InternalJenaFactory.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Modifier and Type | Interface and Description |
---|---|
interface |
JsonLdBlankNode |
interface |
JsonLdIRI |
Modifier and Type | Method and Description |
---|---|
JsonLdQuad |
JsonLdRDF.createQuad(BlankNodeOrIRI graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
JsonLdTriple |
JsonLdRDF.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Modifier and Type | Interface and Description |
---|---|
interface |
RDF4JBlankNode
Marker interface for RDF4J implementations of Commons RDF
BlankNode . |
interface |
RDF4JBlankNodeOrIRI
Marker interface for RDF4J implementations of Commons RDF
BlankNodeOrIRI (e.g. |
interface |
RDF4JIRI
Marker interface for RDF4J implementations of Commons RDF
IRI . |
Modifier and Type | Method and Description |
---|---|
Stream<BlankNodeOrIRI> |
RDF4JDataset.getGraphNames()
Get the graph names in this Dataset.
|
Modifier and Type | Method and Description |
---|---|
Quad |
RDF4J.createQuad(BlankNodeOrIRI graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
RDF4JTriple |
RDF4J.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
ClosableIterable<Triple> |
RDF4JGraph.iterate(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Gets an Iterable for iterating over the triples in the graph that match
the pattern.
|
ClosableIterable<Quad> |
RDF4JDataset.iterate(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get an Iterable for iterating over the quads in the dataset that match
the pattern.
|
Stream<RDF4JTriple> |
RDF4JGraph.stream(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Gets all triples contained by the graph matched with the pattern.
|
Stream<RDF4JQuad> |
RDF4JDataset.stream(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get all quads contained by the dataset matched with the pattern.
|
Modifier and Type | Method and Description |
---|---|
RDF4JGraph |
RDF4J.asGraph(org.eclipse.rdf4j.repository.Repository repository,
Set<? extends BlankNodeOrIRI> contexts,
RDF4J.Option... option)
Adapt an RDF4J
Repository as a Commons RDF Graph . |
ClosableIterable<Quad> |
RDF4JDataset.iterate(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get an Iterable for iterating over the quads in the dataset that match
the pattern.
|
Stream<RDF4JQuad> |
RDF4JDataset.stream(Optional<BlankNodeOrIRI> graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Get all quads contained by the dataset matched with the pattern.
|
Modifier and Type | Class and Description |
---|---|
class |
Types
Types from the RDF and XML Schema vocabularies.
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetGraphView.add(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
boolean |
DatasetGraphView.contains(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Quad |
SimpleRDF.createQuad(BlankNodeOrIRI graphName,
BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Triple |
SimpleRDF.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Triple |
SimpleRDFTermFactory.createTriple(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object)
Deprecated.
|
void |
DatasetGraphView.remove(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Stream<? extends Triple> |
DatasetGraphView.stream(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Constructor and Description |
---|
DatasetGraphView(Dataset dataset,
BlankNodeOrIRI namedGraph) |
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.