Package | Description |
---|---|
org.apache.commons.rdf.api |
Commons RDF, a common library of RDF 1.1 concepts.
|
org.apache.commons.rdf.experimental |
Experimental Commons RDF features.
|
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.
|
org.apache.commons.rdf.simple.experimental |
Experimental Commons RDF Simple implementations.
|
Modifier and Type | Method and Description |
---|---|
IRI |
RDF.createIRI(String iri)
Create an IRI from a (possibly escaped) String.
|
default IRI |
RDFTermFactory.createIRI(String iri)
Deprecated.
|
IRI |
Literal.getDatatype()
The IRI identifying the datatype that determines how the lexical form
maps to a literal value.
|
IRI |
Triple.getPredicate()
The predicate
IRI of this triple. |
IRI |
Quad.getPredicate()
The predicate
IRI of this quad. |
IRI |
RDFSyntax.iri()
Return the
IRI that identifies the RDF syntax. |
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.
|
Literal |
RDF.createLiteral(String lexicalForm,
IRI dataType)
Create a literal with the specified data type.
|
default Literal |
RDFTermFactory.createLiteral(String lexicalForm,
IRI dataType)
Deprecated.
|
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.
|
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 |
---|---|
RDFParser |
RDFParser.base(IRI base)
Specify a base IRI to use for parsing any relative IRI references.
|
RDFParser |
RDFParser.source(IRI iri)
Specify an absolute source
IRI to retrieve and parse. |
Modifier and Type | Interface and Description |
---|---|
interface |
JenaIRI
A Jena-backed
IRI . |
Modifier and Type | Method and Description |
---|---|
JenaLiteral |
JenaRDF.createLiteral(String lexicalForm,
IRI dataType) |
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 |
JsonLdIRI |
Modifier and Type | Method and Description |
---|---|
JsonLdLiteral |
JsonLdRDF.createLiteral(String literal,
IRI dataType) |
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 |
RDF4JIRI
Marker interface for RDF4J implementations of Commons RDF
IRI . |
Modifier and Type | Method and Description |
---|---|
Literal |
RDF4J.createLiteral(String lexicalForm,
IRI dataType) |
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 | Class and Description |
---|---|
class |
Types
Types from the RDF and XML Schema vocabularies.
|
Modifier and Type | Method and Description |
---|---|
IRI |
SimpleRDF.createIRI(String iri) |
IRI |
SimpleRDFTermFactory.createIRI(String iri)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Optional<IRI> |
Types.get(IRI nextIRI)
Get the IRI from this collection if it is present, or return
Optional.empty() otherwise. |
static Set<IRI> |
Types.values()
Get an immutable set of the IRIs used by the RDF-1.1 specification to
define 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) |
Literal |
SimpleRDF.createLiteral(String literal,
IRI dataType) |
Literal |
SimpleRDFTermFactory.createLiteral(String literal,
IRI dataType)
Deprecated.
|
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.
|
static Optional<IRI> |
Types.get(IRI nextIRI)
Get the IRI from this collection if it is present, or return
Optional.empty() otherwise. |
void |
DatasetGraphView.remove(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Stream<? extends Triple> |
DatasetGraphView.stream(BlankNodeOrIRI subject,
IRI predicate,
RDFTerm object) |
Modifier and Type | Method and Description |
---|---|
Optional<IRI> |
AbstractRDFParser.getBase()
Get the set base
IRI , if present. |
Optional<IRI> |
AbstractRDFParser.getSourceIri()
Get the set source
Path . |
Modifier and Type | Method and Description |
---|---|
T |
AbstractRDFParser.base(IRI base) |
protected void |
AbstractRDFParser.checkIsAbsolute(IRI iri)
Check if an iri is absolute.
|
T |
AbstractRDFParser.source(IRI iri) |
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.