public class RdfCollector
extends org.openrdf.rio.helpers.RDFHandlerBase
Modifier and Type | Field and Description |
---|---|
protected static String |
BNODE_NS |
protected HashMap<QualifiedName,HashMap<QualifiedName,List<org.openrdf.model.Statement>>> |
collators |
protected Document |
document |
protected Name |
name |
protected Ontology |
onto |
protected ProvFactory |
pFactory |
protected Types |
types |
Constructor and Description |
---|
RdfCollector(ProvFactory pFactory,
Ontology onto) |
Modifier and Type | Method and Description |
---|---|
protected QualifiedName |
bnodeToQualifiedName(org.openrdf.model.BNode bnode) |
protected void |
buildBundles() |
protected void |
buildGraph() |
List<Attribute> |
collectAttributes(QualifiedName context,
QualifiedName qualifiedName,
Types.ProvType type) |
protected QualifiedName |
convertResourceToQualifiedName(org.openrdf.model.Resource resource) |
protected QualifiedName |
convertURIToQualifiedName(org.openrdf.model.URI uri) |
protected List<Entry> |
createKeyEntityPairs(QualifiedName context,
List<QualifiedName> pairs) |
protected Object |
decodeLiteral(org.openrdf.model.Literal literal) |
QualifiedName |
emptyQualifiedName() |
void |
endRDF() |
protected List<org.openrdf.model.Value> |
getDataObjects(QualifiedName context,
QualifiedName subject,
QualifiedName pred) |
Document |
getDocument() |
protected Types.ProvType[] |
getExplicitTypes(QualifiedName context,
QualifiedName qualifiedName) |
protected List<QualifiedName> |
getObjects(QualifiedName context,
QualifiedName subject,
QualifiedName pred) |
protected org.openrdf.model.Statement |
getSingleStatementForPredicate(QualifiedName context,
QualifiedName qualifiedName,
QualifiedName uri) |
protected List<org.openrdf.model.Statement> |
getStatementsForPredicate(QualifiedName context,
QualifiedName qualifiedName,
QualifiedName uri) |
void |
handleNamespace(String prefix,
String namespace)
RDFHandlerBase overrides
|
void |
handleStatement(org.openrdf.model.Statement statement) |
protected boolean |
isBNodeReferenced(org.openrdf.model.BNode object) |
Attribute |
newAttribute(org.openrdf.model.Literal lit,
QualifiedName type) |
Attribute |
newAttributeForValue(org.openrdf.model.Value obj,
QualifiedName type) |
protected void |
store(QualifiedName context,
Relation relation0) |
protected Key |
valueToKey(org.openrdf.model.Value value) |
protected Object |
valueToObject(org.openrdf.model.Value value) |
protected final ProvFactory pFactory
protected final Name name
protected HashMap<QualifiedName,HashMap<QualifiedName,List<org.openrdf.model.Statement>>> collators
protected Document document
protected final Ontology onto
protected static String BNODE_NS
protected final Types types
public RdfCollector(ProvFactory pFactory, Ontology onto)
protected void store(QualifiedName context, Relation relation0)
protected boolean isBNodeReferenced(org.openrdf.model.BNode object)
protected List<org.openrdf.model.Statement> getStatementsForPredicate(QualifiedName context, QualifiedName qualifiedName, QualifiedName uri)
protected org.openrdf.model.Statement getSingleStatementForPredicate(QualifiedName context, QualifiedName qualifiedName, QualifiedName uri)
protected Types.ProvType[] getExplicitTypes(QualifiedName context, QualifiedName qualifiedName)
protected QualifiedName convertResourceToQualifiedName(org.openrdf.model.Resource resource)
protected Object valueToObject(org.openrdf.model.Value value)
protected Key valueToKey(org.openrdf.model.Value value)
protected Object decodeLiteral(org.openrdf.model.Literal literal)
protected void buildGraph()
protected void buildBundles()
public QualifiedName emptyQualifiedName()
protected QualifiedName convertURIToQualifiedName(org.openrdf.model.URI uri)
public List<Attribute> collectAttributes(QualifiedName context, QualifiedName qualifiedName, Types.ProvType type)
public Attribute newAttributeForValue(org.openrdf.model.Value obj, QualifiedName type)
public Attribute newAttribute(org.openrdf.model.Literal lit, QualifiedName type)
protected List<org.openrdf.model.Value> getDataObjects(QualifiedName context, QualifiedName subject, QualifiedName pred)
protected List<Entry> createKeyEntityPairs(QualifiedName context, List<QualifiedName> pairs)
protected List<QualifiedName> getObjects(QualifiedName context, QualifiedName subject, QualifiedName pred)
public Document getDocument()
public void handleNamespace(String prefix, String namespace)
handleNamespace
in interface org.openrdf.rio.RDFHandler
handleNamespace
in class org.openrdf.rio.helpers.RDFHandlerBase
protected QualifiedName bnodeToQualifiedName(org.openrdf.model.BNode bnode)
public void handleStatement(org.openrdf.model.Statement statement)
handleStatement
in interface org.openrdf.rio.RDFHandler
handleStatement
in class org.openrdf.rio.helpers.RDFHandlerBase
public void endRDF()
endRDF
in interface org.openrdf.rio.RDFHandler
endRDF
in class org.openrdf.rio.helpers.RDFHandlerBase
Copyright © 2016. All rights reserved.