RDFAsRDF4jModel

es.weso.rdf.rdf4j.RDFAsRDF4jModel
See theRDFAsRDF4jModel companion object
case class RDFAsRDF4jModel(model: Model, base: Option[IRI], sourceIRI: Option[IRI]) extends RDFReader with RDFBuilder with RDFReasoner

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait RDFReader
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

Inherited types

type RDFBuild[A] = IO[A]

Attributes

Inherited from:
RDFBuilder
type RDFRead[A] = IO[A]

Attributes

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

Attributes

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

Attributes

Inherited from:
RDFReader

Value members

Concrete methods

override def addBase(iri: IRI): IO[Rdf]

Attributes

Definition Classes
override def addPrefix(alias: String, iri: IRI): IO[Rdf]

Attributes

Definition Classes
override def addPrefixMap(pm: PrefixMap): IO[Rdf]

Attributes

Definition Classes
override def addTriples(triples: Set[RDFTriple]): IO[Rdf]

Attributes

Definition Classes
override def applyInference(inference: InferenceEngine): IO[Rdf]

Attributes

Definition Classes
override def asRDFBuilder: IO[RDFBuilder]

Attributes

Definition Classes

Attributes

Definition Classes

Attributes

Returns:

List of available formats that this RDFReader supports

Definition Classes

Attributes

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

Attributes

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 createBNode: IO[(RDFNode, Rdf)]

Attributes

Definition Classes
override def empty: IO[Resource[IO, Rdf]]

Attributes

Definition Classes
override def extendImports: IO[Rdf]

Attributes

Definition Classes
override def fromString(str: String, format: String, base: Option[IRI]): IO[Resource[IO, Rdf]]

Attributes

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

Attributes

Definition Classes
override def getPrefixMap: IO[PrefixMap]

Prefix map

Prefix map

Attributes

Definition Classes

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

Attributes

Definition Classes

Attributes

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

Attributes

Definition Classes
override def iris(): RDFStream[IRI]

The set of all iri's available

The set of all iri's available

Attributes

Definition Classes

Attributes

other

RDF reader

Returns:

true if this RDF graph is isomorphic with other

override def merge(other: RDFReader): IO[Rdf]

Attributes

Definition Classes

Set of RDFTriples that relate two nodes by a SHACL path

Set of RDFTriples that relate two nodes by a SHACL path

Attributes

p

path

Definition Classes

Attributes

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

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

Attributes

Definition Classes
override def queryAsJson(queryStr: 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

Attributes

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

Attributes

queryStr

string representing the SPARQL query

Returns:

Either a List of mappings or an error message

Definition Classes
override def rdfReaderName: String

Attributes

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

Set of RDFTriples in a graph

Set of RDFTriples in a graph

Attributes

Definition Classes
override def rmTriple(triple: RDFTriple): IO[Rdf]

Attributes

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

convert a RDF graph to a String

convert a RDF graph to a String

Attributes

Definition Classes
override def subjects(): RDFStream[RDFNode]

Returns the set of subjects that are IRIs in a graph

Returns the set of subjects that are IRIs in a graph

Attributes

Definition Classes
override def subjectsWithPath(path: SHACLPath, obj: 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

Attributes

o

object

p

path

Definition Classes

Set of RDFTriples that contain a node as object

Set of RDFTriples that contain a node as object

Attributes

n

node

Definition Classes

Set of RDFTriples that relate two nodes by a predicate

Set of RDFTriples that relate two nodes by a predicate

Attributes

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

Attributes

o

object

p

predicate

Definition Classes

Set of RDFTriples that contain a node as subject

Set of RDFTriples that contain a node as subject

Attributes

n

node

Returns:

A set of triples or a String with an error message

Definition Classes

Inherited methods

Attributes

Inherited from:
RDFBuilder

Attributes

Inherited from:
RDFBuilder

Attributes

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

Attributes

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

Attributes

Inherited from:
RDFReader

Returns the set of predicates

Returns the set of predicates

Attributes

Inherited from:
RDFReader

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
RDFReader

Attributes

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

Attributes

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

Attributes

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

Attributes

n

node

ps

list of predicates

Inherited from:
RDFReader

Concrete fields

val id: String

Inherited fields

Attributes

Inherited from:
RDFReader

Attributes

Inherited from:
RDFReader