RDFBuilder

trait RDFBuilder extends RDFReader
trait RDFReader
class Object
trait Matchable
class Any

Type members

Types

type RDFBuild[A] = IO[A]
type Rdf <: RDFBuilder

Inherited types

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

Value members

Abstract methods

def addBase(iri: IRI): IO[Rdf]
def addPrefix(alias: String, iri: IRI): IO[Rdf]
def addPrefixMap(pm: PrefixMap): IO[Rdf]
def addTriples(triples: Set[RDFTriple]): IO[Rdf]
def createBNode: IO[(RDFNode, Rdf)]
def empty: IO[Resource[RDFBuild, Rdf]]
def fromString(str: String, format: String, base: Option[IRI]): IO[Resource[IO, RDFBuilder]]
def merge(other: RDFReader): IO[Rdf]
def rmTriple(triple: RDFTriple): IO[Rdf]

Concrete methods

def addTriple(triple: RDFTriple): IO[Rdf]
def addType(node: RDFNode, typeNode: RDFNode): IO[Rdf]

Inherited methods

Inherited from
RDFReader
def availableParseFormats: List[String]
Returns

List of available formats that this RDFReader supports

Inherited from
RDFReader
def availableSerializeFormats: List[String]
Returns

List of formats in which this RDFReader can be serialized

Inherited from
RDFReader
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 Params
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

Inherited from
RDFReader
def getNumberOfStatements(): IO[Int]
Inherited from
RDFReader

Prefix map

Prefix map

Inherited from
RDFReader

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

Inherited from
RDFReader
Inherited from
RDFReader
def hasPredicateWithSubject(n: RDFNode, p: IRI): IO[Boolean]
Inherited from
RDFReader
def hasSHACLClass(node: RDFNode, cls: RDFNode): IO[Boolean]

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

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

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 isIsomorphicWith(other: RDFReader): IO[Boolean]
Value Params
other

RDF reader

Returns

true if this RDF graph is isomorphic with other

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

Set of RDFTriples that relate two nodes by a SHACL path

Set of RDFTriples that relate two nodes by a SHACL path

Value Params
p

path

Inherited from
RDFReader

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

Inherited from
RDFReader

Returns the set of predicates

Returns the set of predicates

Inherited from
RDFReader
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 Params
str

string representing the SPARQL query

Returns

JSON representation of the result

Inherited from
RDFReader
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 Params
queryStr

string representing the SPARQL query

Returns

Either a List of mappings or an error message

Inherited from
RDFReader
def rdfReaderName: String
Inherited from
RDFReader

Set of RDFTriples in a graph

Set of RDFTriples in a graph

Inherited from
RDFReader
def serialize(format: String, base: Option[IRI]): IO[String]

convert a RDF graph to a String

convert a RDF graph to a String

Inherited from
RDFReader
def sourceIRI: Option[IRI]
Returns

Source IRI of this RDF graph if exists

Inherited from
RDFReader

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 relate a node with some object by a path

Set of RDFTriples that relate a node with some object by a path

Value Params
o

object

p

path

Inherited from
RDFReader

Set of RDFTriples that contain a node as object

Set of RDFTriples that contain a node as object

Value Params
n

node

Inherited from
RDFReader

Set of RDFTriples that relate two nodes by a predicate

Set of RDFTriples that relate two nodes by a predicate

Value Params
p

predicate

Inherited from
RDFReader

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 Params
o

object

p

predicate

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 Params
o

object

ps

list of predicates

Inherited from
RDFReader

Set of RDFTriples that contain a node as subject

Set of RDFTriples that contain a node as subject

Value Params
n

node

Returns

A set of triples or a String with an error message

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 Params
n

node

ps

list of predicates

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

Inherited fields

val id: String
Inherited from
RDFReader
Inherited from
RDFReader
Inherited from
RDFReader