trait RDFReader extends AnyRef
RDFReader can read RDF data from several sources like an in-memory model or a SPARQL endpoint
- Source
- RDFReader.scala
- Alphabetic
- By Inheritance
- RDFReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Abstract Value Members
- abstract def asRDFBuilder: RDFRead[RDFBuilder]
-
abstract
def
availableParseFormats: List[String]
- returns
List of available formats that this RDFReader supports
-
abstract
def
availableSerializeFormats: List[String]
- returns
List of formats in which this RDFReader can be serialized
-
abstract
def
checkDatatype(node: RDFNode, datatype: IRI): RDFRead[Boolean]
Checks if a node has a given datatype
Checks if a node has a given datatype
- node
RDF node to check
- datatype
Datatype IRI to check
- returns
In case of a bad formed literal, a Left with a message, otherwise the check
- abstract def getNumberOfStatements(): RDFRead[Int]
-
abstract
def
getPrefixMap: RDFRead[PrefixMap]
Prefix map
-
abstract
def
getSHACLInstances(cls: RDFNode): RDFStream[RDFNode]
return the SHACL instances of a node
cls
A nodenode
is a shacl instance ofcls
ifnode rdf:type/rdfs:subClassOf* cls
- abstract def hasPredicateWithSubject(n: RDFNode, p: IRI): RDFRead[Boolean]
-
abstract
def
hasSHACLClass(node: RDFNode, cls: RDFNode): RDFRead[Boolean]
true
ifnode rdf:type/rdfs:subClassOf* cls
- abstract val id: String
-
abstract
def
isIsomorphicWith(other: RDFReader): RDFRead[Boolean]
- other
RDF reader
- returns
true if this RDF graph is isomorphic with other
-
abstract
def
nodesWithPath(p: SHACLPath): RDFStream[(RDFNode, RDFNode)]
Set of RDFTriples that relate two nodes by a SHACL path
Set of RDFTriples that relate two nodes by a SHACL path
- p
path
-
abstract
def
objectsWithPath(subj: RDFNode, path: SHACLPath): RDFStream[RDFNode]
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
-
abstract
def
queryAsJson(str: String): RDFRead[Json]
Run a SPARQL query which returns a JSON representation of the result
Run a SPARQL query which returns a JSON representation of the result
- str
string representing the SPARQL query
- returns
JSON representation of the result
-
abstract
def
querySelect(queryStr: String): RDFStream[Map[String, RDFNode]]
Run a SPARQL select query which returns a result map
Run a SPARQL select query which returns a result map
- queryStr
string representing the SPARQL query
- returns
Either a List of mappings or an error message
- abstract def rdfReaderName: String
-
abstract
def
rdfTriples(): RDFStream[RDFTriple]
Set of RDFTriples in a graph
-
abstract
def
serialize(format: String = "TURTLE", base: Option[IRI] = None): RDFRead[String]
convert a RDF graph to a String
-
abstract
def
sourceIRI: Option[IRI]
- returns
Source IRI of this RDF graph if exists
-
abstract
def
subjectsWithPath(p: SHACLPath, o: RDFNode): RDFStream[RDFNode]
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
- p
path
- o
object
-
abstract
def
triplesWithObject(n: RDFNode): RDFStream[RDFTriple]
Set of RDFTriples that contain a node as object
Set of RDFTriples that contain a node as object
- n
node
-
abstract
def
triplesWithPredicate(p: IRI): RDFStream[RDFTriple]
Set of RDFTriples that relate two nodes by a predicate
Set of RDFTriples that relate two nodes by a predicate
- p
predicate
-
abstract
def
triplesWithPredicateObject(p: IRI, o: RDFNode): RDFStream[RDFTriple]
Set of RDFTriples that contain a node as predicate with some object
Set of RDFTriples that contain a node as predicate with some object
- p
predicate
- o
object
-
abstract
def
triplesWithSubject(n: RDFNode): RDFStream[RDFTriple]
Set of RDFTriples that contain a node as subject
Set of RDFTriples that contain a node as subject
- n
node
- returns
A set of triples or a String with an error message
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getTypes(node: RDFNode): RDFStream[RDFNode]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
iriObjects(): RDFStream[IRI]
Returns the set of iriObjects that are IRIs in a graph
-
def
iris(): RDFStream[IRI]
The set of all iri's available
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mkStream[A, B](vs: List[A], f: (A) ⇒ Stream[IO, B]): Stream[IO, B]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nodeLocations: Map[RDFNode, Set[Location]]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
predicates(): RDFStream[IRI]
Returns the set of predicates
-
def
subjects(): RDFStream[RDFNode]
Returns the set of subjects that are IRIs in a graph
- def subjectsWithProperty(pred: IRI): RDFStream[RDFNode]
- def subjectsWithType(t: RDFNode): RDFStream[RDFNode]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val tripleLocations: Map[RDFTriple, Set[Location]]
-
def
triplesWithPredicatesObject(ps: LazyList[IRI], o: RDFNode): RDFStream[RDFTriple]
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
- ps
list of predicates
- o
object
-
def
triplesWithSubjectPredicate(s: RDFNode, p: IRI): RDFStream[RDFTriple]
Set of RDFTriples that contain a node as subject and a given Predicate
-
def
triplesWithSubjectPredicates(n: RDFNode, ps: LazyList[IRI]): RDFStream[RDFTriple]
Set of RDFTriples that contain a node as subject with some of the predicates in a list
Set of RDFTriples that contain a node as subject with some of the predicates in a list
- n
node
- ps
list of predicates
- def triplesWithType(expectedType: IRI): RDFStream[RDFTriple]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )