Packages

c

net.sansa_stack.inference.spark.utils

RDFSSchemaExtractor

class RDFSSchemaExtractor extends Logging with Serializable

An extractor of the schema for RDFS.

Currently, it's supports the extraction of triples (s,p,o) with p being

  • rdfs:subClassOf
  • rdfs:subPropertyOf
  • rdfs:domain
  • rdfs:range
Linear Supertypes
Serializable, Serializable, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RDFSSchemaExtractor
  2. Serializable
  3. Serializable
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RDFSSchemaExtractor()

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. def debug(msg: ⇒ String, o: Any, os: Any*): Unit
    Definition Classes
    Logging
  7. def debug(msg: ⇒ String, e: Throwable): Unit
    Definition Classes
    Logging
  8. def debug(msg: ⇒ String): Unit
    Definition Classes
    Logging
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def error(msg: ⇒ String, o: Any, os: Any*): Unit
    Definition Classes
    Logging
  12. def error(msg: ⇒ String, e: Throwable): Unit
    Definition Classes
    Logging
  13. def error(msg: ⇒ String): Unit
    Definition Classes
    Logging
  14. def extract(triples: RDD[Triple]): RDD[Triple]

    Extracts the schema triples from the given triples.

    Extracts the schema triples from the given triples.

    triples

    the triples

    returns

    the schema triples

  15. def extract(graph: RDFGraph): RDFGraph

    Extracts the RDF graph containing only the schema triples from the RDF graph.

    Extracts the RDF graph containing only the schema triples from the RDF graph.

    graph

    the RDF graph

    returns

    the RDF graph containing only the schema triples

  16. def extractWithIndex(graph: RDFGraphDataFrame): Map[Node, DataFrame]

    Computes the s-o pairs for each schema property p, e.g.

    Computes the s-o pairs for each schema property p, e.g. rdfs:subClassOf and returns it as mapping from p to the Dataframe containing s and o.

    graph

    the RDF graph

    returns

    a mapping from the corresponding schema property to the Dataframe of s-o pairs

  17. def extractWithIndex(graph: RDFGraphNative): Map[Node, RDD[(Node, Node)]]

    Computes the s-o pairs for each schema property p, e.g.

    Computes the s-o pairs for each schema property p, e.g. rdfs:subClassOf and returns it as mapping from p to the RDD of s-o pairs.

    graph

    the RDF graph

    returns

    a mapping from the corresponding schema property to the RDD of s-o pairs

  18. def extractWithIndexAndDistribute(sc: SparkContext, graph: RDFGraphNative): Map[Node, Broadcast[Map[Node, Set[Node]]]]

    Computes the s-o pairs for each schema property, e.g.

    Computes the s-o pairs for each schema property, e.g. rdfs:subClassOf and distributes it to all worker nodes via broadcast.

    graph

    the RDF graph

    returns

    a mapping from the corresponding schema property to the broadcast variable that wraps the multimap with s-o pairs

  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. def info(msg: ⇒ String, o: Any, os: Any*): Unit
    Definition Classes
    Logging
  22. def info(msg: ⇒ String, e: Throwable): Unit
    Definition Classes
    Logging
  23. def info(msg: ⇒ String): Unit
    Definition Classes
    Logging
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  26. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  30. val properties: Set[Node]
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def trace(msg: ⇒ String, o: Any, os: Any*): Unit
    Definition Classes
    Logging
  34. def trace(msg: ⇒ String, e: Throwable): Unit
    Definition Classes
    Logging
  35. def trace(msg: ⇒ String): Unit
    Definition Classes
    Logging
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def warn(msg: ⇒ String, o: Any, os: Any*): Unit
    Definition Classes
    Logging
  40. def warn(msg: ⇒ String, e: Throwable): Unit
    Definition Classes
    Logging
  41. def warn(msg: ⇒ String): Unit
    Definition Classes
    Logging

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 Logging

Inherited from AnyRef

Inherited from Any

Ungrouped