WikibaseRDF

case class WikibaseRDF(endpoint: IRI, prefixMap: PrefixMap, refCached: Ref[IO, CachedState]) extends RDFReader
Companion:
object
trait Serializable
trait Product
trait Equals
trait RDFReader
class Object
trait Matchable
class Any

Type members

Inherited types

type RDFRead[A] = IO[A]
Inherited from:
RDFReader
type RDFStream[A] = Stream[IO, A]
Inherited from:
RDFReader
type Rdf <: RDFReader
Inherited from:
RDFReader
type S[A] = Stream[IO, A]
Inherited from:
RDFReader

Value members

Concrete methods

override def asRDFBuilder: IO[RDFBuilder]
Definition Classes
Returns:

List of available formats that this RDFReader supports

Definition Classes
Returns:

List of formats in which this RDFReader can be serialized

Definition Classes
override def checkDatatype(node: RDFNode, datatype: IRI): IO[Boolean]

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

Definition Classes
override def getNumberOfStatements(): IO[Int]
Definition Classes
override def getPrefixMap: IO[PrefixMap]

Prefix map

Prefix map

Definition Classes
override def getSHACLInstances(cls: RDFNode): Stream[IO, RDFNode]

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

Definition Classes
Definition Classes
override def hasSHACLClass(n: RDFNode, c: RDFNode): IO[Boolean]

true if node rdf:type/rdfs:subClassOf* cls

true if node rdf:type/rdfs:subClassOf* cls

Definition Classes
override def isIsomorphicWith(other: RDFReader): IO[Boolean]
Value parameters:
other

RDF reader

Returns:

true if this RDF graph is isomorphic with other

Definition Classes

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

Definition Classes
override def objectsWithPath(subj: RDFNode, path: SHACLPath): Stream[IO, 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

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

Definition Classes
override def queryAsJson(str: String): IO[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

Value parameters:
str

string representing the SPARQL query

Returns:

JSON representation of the result

Definition Classes
override 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

Value parameters:
queryStr

string representing the SPARQL query

Returns:

Either a List of mappings or an error message

Definition Classes
override def rdfReaderName: String
Definition Classes
override def rdfTriples(): RDFStream[RDFTriple]

Set of RDFTriples in a graph

Set of RDFTriples in a graph

Definition Classes
override def serialize(format: String, base: Option[IRI]): IO[String]

convert a RDF graph to a String

convert a RDF graph to a String

Definition Classes
def showRDFId(msg: String): IO[Unit]
override def sourceIRI: Option[IRI]
Returns:

Source IRI of this RDF graph if exists

Definition Classes

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

Definition Classes

Set of RDFTriples that contain a node as object

Set of RDFTriples that contain a node as object

Value parameters:
n

node

Definition Classes

Set of RDFTriples that relate two nodes by a predicate

Set of RDFTriples that relate two nodes by a predicate

Value parameters:
p

predicate

Definition Classes

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

Definition Classes

Set of RDFTriples that contain a node as subject

Set of RDFTriples that contain a node as subject

Value parameters:
n

node

Returns:

A set of triples or a String with an error message

Definition Classes

Inherited methods

Inherited from:
RDFReader

Returns the set of iriObjects that are IRIs in a graph

Returns the set of iriObjects that are IRIs in a graph

Inherited from:
RDFReader

The set of all iri's available

The set of all iri's available

Inherited from:
RDFReader
def mkStream[A, B](vs: List[A], f: A => Stream[IO, B]): Stream[IO, B]
Inherited from:
RDFReader

Returns the set of predicates

Returns the set of predicates

Inherited from:
RDFReader
Inherited from:
Product

Returns the set of subjects that are IRIs in a graph

Returns the set of subjects that are IRIs in a graph

Inherited from:
RDFReader

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

Inherited from:
RDFReader

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

Inherited from:
RDFReader

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

Value parameters:
n

node

ps

list of predicates

Inherited from:
RDFReader
def triplesWithType(expectedType: IRI): RDFStream[RDFTriple]
Inherited from:
RDFReader

Concrete fields

override val id: String

Inherited fields