Class RdfQuadAdapter
- java.lang.Object
-
- com.apicatalog.jsonld.deseralization.RdfQuadAdapter
-
- All Implemented Interfaces:
RdfTripleConsumer,com.apicatalog.rdf.api.RdfQuadConsumer
@Deprecated public abstract class RdfQuadAdapter extends java.lang.Object implements com.apicatalog.rdf.api.RdfQuadConsumer, RdfTripleConsumer
Deprecated.since 1.7.0 - use an alternative RDF primitives library.This class is deprecated as of version 1.7.0.Please use Titanium RDF Primitives or any other third-party library to materialize RDF primitives.
- See Also:
- Titanium RDF Primitives
-
-
Field Summary
Fields Modifier and Type Field Description protected RdfResourcegraphNameDeprecated.protected java.util.Map<java.lang.String,RdfResource>resourcesDeprecated.
-
Constructor Summary
Constructors Constructor Description RdfQuadAdapter()Deprecated.RdfQuadAdapter(java.util.Map<java.lang.String,RdfResource> resources)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RdfQuadAdapterdefaultGraph()Deprecated.Sets the default graph as the active scope.protected RdfResourcegetResource(java.lang.String name)Deprecated.RdfQuadAdapternamedGraph(java.lang.String graph)Deprecated.Sets a named graph as the active scope.protected abstract voidquad(RdfResource subject, RdfResource predicate, RdfValue value, RdfResource graph)Deprecated.com.apicatalog.rdf.api.RdfQuadConsumerquad(java.lang.String subject, java.lang.String predicate, java.lang.String object, java.lang.String datatype, java.lang.String language, java.lang.String direction, java.lang.String graph)Deprecated.RdfQuadAdaptertriple(java.lang.String subject, java.lang.String predicate, java.lang.String object)Deprecated.Accepts an RDF triple where the object is an IRI or a blank node.RdfQuadAdaptertriple(java.lang.String subject, java.lang.String predicate, java.lang.String literal, java.lang.String datatype)Deprecated.Accepts an RDF triple where the object is a literal with a datatype.RdfQuadAdaptertriple(java.lang.String subject, java.lang.String predicate, java.lang.String literal, java.lang.String language, java.lang.String direction)Deprecated.Accepts an RDF triple where the object is a localized string value.
-
-
-
Field Detail
-
resources
protected final java.util.Map<java.lang.String,RdfResource> resources
Deprecated.
-
graphName
protected RdfResource graphName
Deprecated.
-
-
Constructor Detail
-
RdfQuadAdapter
public RdfQuadAdapter()
Deprecated.
-
RdfQuadAdapter
public RdfQuadAdapter(java.util.Map<java.lang.String,RdfResource> resources)
Deprecated.
-
-
Method Detail
-
quad
protected abstract void quad(RdfResource subject, RdfResource predicate, RdfValue value, RdfResource graph)
Deprecated.
-
namedGraph
public RdfQuadAdapter namedGraph(java.lang.String graph)
Deprecated.Description copied from interface:RdfTripleConsumerSets a named graph as the active scope. Ensures that subsequent triples are associated with the specified graph.- Specified by:
namedGraphin interfaceRdfTripleConsumer- Parameters:
graph- The name of the graph (IRI or blank node identifier prefixed with "_:"); nevernull.- Returns:
- An instance enabling fluent programming; never
null.
-
defaultGraph
public RdfQuadAdapter defaultGraph()
Deprecated.Description copied from interface:RdfTripleConsumerSets the default graph as the active scope. This method is invoked when triples belong to the unnamed default graph.- Specified by:
defaultGraphin interfaceRdfTripleConsumer- Returns:
- An instance enabling fluent programming; never
null.
-
triple
public RdfQuadAdapter triple(java.lang.String subject, java.lang.String predicate, java.lang.String literal, java.lang.String language, java.lang.String direction)
Deprecated.Description copied from interface:RdfTripleConsumerAccepts an RDF triple where the object is a localized string value. Optimized for efficient handling of language-tagged literals. The triple is processed within the currently active graph scope.- Specified by:
triplein interfaceRdfTripleConsumer- Parameters:
subject- The subject of the triple (IRI or blank node identifier prefixed with "_:"); nevernull.predicate- The predicate of the triple (IRI); nevernull.literal- The literal value of the object; nevernull.language- The language tag of the literal; nevernull.direction- The text direction of the literal (optional, may benull).- Returns:
- An instance enabling fluent programming; never
null.
-
triple
public RdfQuadAdapter triple(java.lang.String subject, java.lang.String predicate, java.lang.String literal, java.lang.String datatype)
Deprecated.Description copied from interface:RdfTripleConsumerAccepts an RDF triple where the object is a literal with a datatype. Optimized for efficient handling of typed literals. The triple is processed within the currently active graph scope.- Specified by:
triplein interfaceRdfTripleConsumer- Parameters:
subject- The subject of the triple (IRI or blank node identifier prefixed with "_:"); nevernull.predicate- The predicate of the triple (IRI); nevernull.literal- The literal value of the object; nevernull.datatype- The datatype IRI of the literal; nevernull.- Returns:
- An instance enabling fluent programming; never
null.
-
triple
public RdfQuadAdapter triple(java.lang.String subject, java.lang.String predicate, java.lang.String object)
Deprecated.Description copied from interface:RdfTripleConsumerAccepts an RDF triple where the object is an IRI or a blank node. The triple is processed within the currently active graph scope.- Specified by:
triplein interfaceRdfTripleConsumer- Parameters:
subject- The subject of the triple (IRI or blank node identifier prefixed with "_:"); nevernull.predicate- The predicate of the triple (IRI); nevernull.object- The object of the triple (IRI or blank node identifier prefixed with "_:"); nevernull.- Returns:
- An instance enabling fluent programming; never
null.
-
quad
public com.apicatalog.rdf.api.RdfQuadConsumer quad(java.lang.String subject, java.lang.String predicate, java.lang.String object, java.lang.String datatype, java.lang.String language, java.lang.String direction, java.lang.String graph) throws com.apicatalog.rdf.api.RdfConsumerExceptionDeprecated.- Specified by:
quadin interfacecom.apicatalog.rdf.api.RdfQuadConsumer- Throws:
com.apicatalog.rdf.api.RdfConsumerException
-
getResource
protected final RdfResource getResource(java.lang.String name)
Deprecated.
-
-