Packages

t

es.weso.rdf

RDFBuilder

trait RDFBuilder extends RDFReader

Source
RDFBuilder.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RDFBuilder
  2. RDFReader
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type RDFBuild[A] = IO[A]
  2. type RDFRead[A] = IO[A]
    Definition Classes
    RDFReader
  3. type RDFStream[A] = Stream[IO, A]
    Definition Classes
    RDFReader
  4. abstract type Rdf <: RDFBuilder
    Definition Classes
    RDFBuilderRDFReader

Abstract Value Members

  1. abstract def addBase(iri: IRI): RDFBuild[Rdf]
  2. abstract def addPrefix(alias: String, iri: IRI): RDFBuild[Rdf]
  3. abstract def addPrefixMap(pm: PrefixMap): RDFBuild[Rdf]
  4. abstract def addTriples(triples: Set[RDFTriple]): RDFBuild[Rdf]
  5. abstract def asRDFBuilder: RDFRead[RDFBuilder]
    Definition Classes
    RDFReader
  6. abstract def availableParseFormats: List[String]

    returns

    List of available formats that this RDFReader supports

    Definition Classes
    RDFReader
  7. abstract def availableSerializeFormats: List[String]

    returns

    List of formats in which this RDFReader can be serialized

    Definition Classes
    RDFReader
  8. 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

    Definition Classes
    RDFReader
  9. abstract def createBNode: RDFBuild[(RDFNode, Rdf)]
  10. abstract def empty: RDFBuild[Resource[RDFBuild, Rdf]]
  11. abstract def extendImports: RDFBuild[Rdf]
  12. abstract def fromString(str: String, format: String, base: Option[IRI]): IO[Resource[IO, RDFBuilder]]
  13. abstract def getNumberOfStatements(): RDFRead[Int]
    Definition Classes
    RDFReader
  14. abstract def getPrefixMap: RDFRead[PrefixMap]

    Prefix map

    Prefix map

    Definition Classes
    RDFReader
  15. abstract def getSHACLInstances(cls: RDFNode): RDFStream[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
    RDFReader
  16. abstract def hasPredicateWithSubject(n: RDFNode, p: IRI): RDFRead[Boolean]
    Definition Classes
    RDFReader
  17. abstract def hasSHACLClass(node: RDFNode, cls: RDFNode): RDFRead[Boolean]

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

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

    Definition Classes
    RDFReader
  18. abstract val id: String
    Definition Classes
    RDFReader
  19. abstract def isIsomorphicWith(other: RDFReader): RDFRead[Boolean]

    other

    RDF reader

    returns

    true if this RDF graph is isomorphic with other

    Definition Classes
    RDFReader
  20. abstract def merge(other: RDFReader): RDFBuild[Rdf]
  21. 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

    Definition Classes
    RDFReader
  22. abstract def normalizeBNodes: RDFBuild[RDFBuilder]
  23. 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

    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
    RDFReader
  24. 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

    Definition Classes
    RDFReader
  25. 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

    Definition Classes
    RDFReader
  26. abstract def rdfReaderName: String
    Definition Classes
    RDFReader
  27. abstract def rdfTriples(): RDFStream[RDFTriple]

    Set of RDFTriples in a graph

    Set of RDFTriples in a graph

    Definition Classes
    RDFReader
  28. abstract def rmTriple(triple: RDFTriple): RDFBuild[Rdf]
  29. abstract def serialize(format: String = "TURTLE", base: Option[IRI] = None): RDFRead[String]

    convert a RDF graph to a String

    convert a RDF graph to a String

    Definition Classes
    RDFReader
  30. abstract def sourceIRI: Option[IRI]

    returns

    Source IRI of this RDF graph if exists

    Definition Classes
    RDFReader
  31. 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

    Definition Classes
    RDFReader
  32. 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

    Definition Classes
    RDFReader
  33. 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

    Definition Classes
    RDFReader
  34. 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

    Definition Classes
    RDFReader
  35. 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

    Definition Classes
    RDFReader

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addTriple(triple: RDFTriple): RDFBuild[Rdf]
  5. def addType(node: RDFNode, typeNode: RDFNode): RDFBuild[Rdf]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def getTypes(node: RDFNode): RDFStream[RDFNode]
    Definition Classes
    RDFReader
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def iriObjects(): RDFStream[IRI]

    Returns the set of iriObjects that are IRIs in a graph

    Returns the set of iriObjects that are IRIs in a graph

    Definition Classes
    RDFReader
  14. def iris(): RDFStream[IRI]

    The set of all iri's available

    The set of all iri's available

    Definition Classes
    RDFReader
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def mkStream[A, B](vs: List[A], f: (A) ⇒ Stream[IO, B]): Stream[IO, B]
    Definition Classes
    RDFReader
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. val nodeLocations: Map[RDFNode, Set[Location]]
    Definition Classes
    RDFReader
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def predicates(): RDFStream[IRI]

    Returns the set of predicates

    Returns the set of predicates

    Definition Classes
    RDFReader
  22. 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

    Definition Classes
    RDFReader
  23. def subjectsWithProperty(pred: IRI): RDFStream[RDFNode]
    Definition Classes
    RDFReader
  24. def subjectsWithType(t: RDFNode): RDFStream[RDFNode]
    Definition Classes
    RDFReader
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. val tripleLocations: Map[RDFTriple, Set[Location]]
    Definition Classes
    RDFReader
  28. 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

    Definition Classes
    RDFReader
  29. def triplesWithSubjectPredicate(s: RDFNode, p: IRI): RDFStream[RDFTriple]

    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

    Definition Classes
    RDFReader
  30. 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

    Definition Classes
    RDFReader
  31. def triplesWithType(expectedType: IRI): RDFStream[RDFTriple]
    Definition Classes
    RDFReader
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from RDFReader

Inherited from AnyRef

Inherited from Any

Ungrouped