Packages

c

es.weso.rdf.jena

RDFFromWeb

case class RDFFromWeb(prefixMap: Option[PrefixMap] = None, maybeClient: Option[Client[IO]] = None) extends RDFReader with Product with Serializable

Obtains triples by redirect

maybeClient

if specified, the requests will use http4s client, otherwise Java's httpClient

Source
RDFFromWeb.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RDFFromWeb
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RDFReader
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RDFFromWeb(prefixMap: Option[PrefixMap] = None, maybeClient: Option[Client[IO]] = None)

    maybeClient

    if specified, the requests will use http4s client, otherwise Java's httpClient

Type Members

  1. type RDFRead[A] = IO[A]
    Definition Classes
    RDFReader
  2. type RDFStream[A] = Stream[IO, A]
    Definition Classes
    RDFReader
  3. type Rdf = RDFFromWeb
    Definition Classes
    RDFFromWebRDFReader

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asRDFBuilder: RDFRead[RDFBuilder]
    Definition Classes
    RDFFromWebRDFReader
  6. def availableParseFormats: List[String]

    returns

    List of available formats that this RDFReader supports

    Definition Classes
    RDFFromWebRDFReader
  7. def availableSerializeFormats: List[String]

    returns

    List of formats in which this RDFReader can be serialized

    Definition Classes
    RDFFromWebRDFReader
  8. 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
    RDFFromWebRDFReader
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def getNumberOfStatements(): RDFRead[Int]
    Definition Classes
    RDFFromWebRDFReader
  13. def getPrefixMap: IO[PrefixMap]

    Prefix map

    Prefix map

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

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

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

    Definition Classes
    RDFFromWebRDFReader
  18. val id: String
    Definition Classes
    RDFFromWebRDFReader
  19. 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
  20. def iris(): RDFStream[IRI]

    The set of all iri's available

    The set of all iri's available

    Definition Classes
    RDFReader
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isIsomorphicWith(other: RDFReader): IO[Nothing]

    other

    RDF reader

    returns

    true if this RDF graph is isomorphic with other

    Definition Classes
    RDFFromWebRDFReader
  23. val log: Logger
  24. val maybeClient: Option[Client[IO]]
  25. def mkStream[A, B](vs: List[A], f: (A) ⇒ Stream[IO, B]): Stream[IO, B]
    Definition Classes
    RDFReader
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. val nodeLocations: Map[RDFNode, Set[Location]]
    Definition Classes
    RDFReader
  28. 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
    RDFFromWebRDFReader
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. 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
    RDFFromWebRDFReader
  32. def predicates(): RDFStream[IRI]

    Returns the set of predicates

    Returns the set of predicates

    Definition Classes
    RDFReader
  33. val prefixMap: Option[PrefixMap]
  34. def queryAsJson(queryStr: 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

    returns

    JSON representation of the result

    Definition Classes
    RDFFromWebRDFReader
  35. 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
    RDFFromWebRDFReader
  36. def rdfReaderName: String
    Definition Classes
    RDFFromWebRDFReader
  37. def rdfTriples(): RDFStream[RDFTriple]

    Set of RDFTriples in a graph

    Set of RDFTriples in a graph

    Definition Classes
    RDFFromWebRDFReader
  38. def serialize(format: String, base: Option[IRI]): RDFRead[String]

    convert a RDF graph to a String

    convert a RDF graph to a String

    Definition Classes
    RDFFromWebRDFReader
  39. def sourceIRI: None.type

    returns

    Source IRI of this RDF graph if exists

    Definition Classes
    RDFFromWebRDFReader
  40. 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
  41. 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
    RDFFromWebRDFReader
  42. def subjectsWithProperty(pred: IRI): RDFStream[RDFNode]
    Definition Classes
    RDFReader
  43. def subjectsWithType(t: RDFNode): RDFStream[RDFNode]
    Definition Classes
    RDFReader
  44. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  45. val tripleLocations: Map[RDFTriple, Set[Location]]
    Definition Classes
    RDFReader
  46. def triplesWithObject(node: RDFNode): RDFStream[RDFTriple]

    Set of RDFTriples that contain a node as object

    Set of RDFTriples that contain a node as object

    Definition Classes
    RDFFromWebRDFReader
  47. 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
    RDFFromWebRDFReader
  48. def triplesWithPredicateObject(p: IRI, node: 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

    Definition Classes
    RDFFromWebRDFReader
  49. 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
  50. def triplesWithSubject(node: RDFNode): RDFStream[RDFTriple]

    Set of RDFTriples that contain a node as subject

    Set of RDFTriples that contain a node as subject

    returns

    A set of triples or a String with an error message

    Definition Classes
    RDFFromWebRDFReader
  51. 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
  52. 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
  53. def triplesWithType(expectedType: IRI): RDFStream[RDFTriple]
    Definition Classes
    RDFReader
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  56. 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 Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RDFReader

Inherited from AnyRef

Inherited from Any

Ungrouped