RDFReader
RDFReader can read RDF data from several sources like an in-memory model or a SPARQL endpoint
Type members
Value members
Abstract methods
Checks if a node has a given datatype
Checks if a node has a given datatype
- Value parameters:
- datatype
Datatype IRI to check
- node
RDF node to check
- Returns:
In case of a bad formed literal, a Left with a message, otherwise the check
return the SHACL instances of a node cls
A node node
is a shacl instance of cls
if node rdf:type/rdfs:subClassOf* cls
return the SHACL instances of a node cls
A node node
is a shacl instance of cls
if node rdf:type/rdfs:subClassOf* cls
Set of RDFTriples that relate two nodes by a SHACL path
Set of RDFTriples that relate two nodes by a SHACL path
- Value parameters:
- p
path
return the values associated with a node by a path The path is defined as in SHACL paths which are a simplified version of SPARQL paths
return the values associated with a node by a path The path is defined as in SHACL paths which are a simplified version of SPARQL paths
Run a SPARQL query which returns a JSON representation of the result
Run a SPARQL query which returns a JSON representation of the result
- Value parameters:
- str
string representing the SPARQL query
- Returns:
JSON representation of the result
Run a SPARQL select query which returns a result map
Run a SPARQL select query which returns a result map
- Value parameters:
- queryStr
string representing the SPARQL query
- Returns:
Either a List of mappings or an error message
Set of RDFTriples that relate a node with some object by a path
Set of RDFTriples that relate a node with some object by a path
- Value parameters:
- o
object
- p
path
Set of RDFTriples that contain a node as object
Set of RDFTriples that contain a node as object
- Value parameters:
- n
node
Set of RDFTriples that relate two nodes by a predicate
Set of RDFTriples that relate two nodes by a predicate
- Value parameters:
- p
predicate
Set of RDFTriples that contain a node as predicate with some object
Set of RDFTriples that contain a node as predicate with some object
- Value parameters:
- o
object
- p
predicate
Concrete methods
Returns the set of iriObjects that are IRIs in a graph
Returns the set of iriObjects that are IRIs in a graph
Returns the set of subjects that are IRIs in a graph
Returns the set of subjects that are IRIs in a graph
Set of RDFTriples that contain a node as object with some of the predicates in a list
Set of RDFTriples that contain a node as object with some of the predicates in a list
- Value parameters:
- o
object
- ps
list of predicates
Set of RDFTriples that contain a node as subject and a given Predicate
Set of RDFTriples that contain a node as subject and a given Predicate