Class

org.uclm.alarcos.rrc.io

TripleReader

Related Doc: package io

Permalink

class TripleReader extends ReaderRDF

Linear Supertypes
ReaderRDF, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TripleReader
  2. ReaderRDF
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TripleReader(sparkSession: SparkSession, inputFile: String)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def execute(): Unit

    Permalink
    Definition Classes
    TripleReaderReaderRDF
  9. def expandNodesNLevel(nodes: VertexRDD[Node], graph: Graph[Node, Node], levels: Int = 1): Dataset[Row]

    Permalink

    Returns a dataset of rows expanded by the number of levels given

    Returns a dataset of rows expanded by the number of levels given

    nodes

    VertexRDD of Nodes which are a subset of the Graph Nodes

    graph

    Spark GraphX of Nodes

    levels

    Number of levels to expand

    returns

    Dataset of Rows of expanded levels

    Definition Classes
    ReaderRDF
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getSubjectsWithProperty(graph: Graph[Node, Node], property: String): VertexRDD[Node]

    Permalink

    Returns a VertexRDD of Nodes linked by the given property

    Returns a VertexRDD of Nodes linked by the given property

    graph

    Spark GraphX of Nodes

    property

    String of the property given

    returns

    VertexRDD of Nodes linked by the given property

    Definition Classes
    ReaderRDF
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def loadGraph(session: SparkSession, path: String): Graph[Node, Node]

    Permalink

    Main method for load the graph from a path

    Main method for load the graph from a path

    session

    Spark session

    path

    Path of the NT files to read. Could be a local, HDFS, S3 path

    returns

    Spark GraphX of Nodes

    Definition Classes
    ReaderRDF
  16. def loadObjects(session: SparkSession, path: String): RDD[Node]

    Permalink

    Returns all the distinct objects in the file (but not the subjects or predicates)

    Returns all the distinct objects in the file (but not the subjects or predicates)

    session

    Spark session

    path

    Path of the NT files to read. Could be a local, HDFS, S3 path

    returns

    RDD of Nodes which are objects in the files

    Definition Classes
    ReaderRDF
  17. def loadPredicates(session: SparkSession, path: String): RDD[Node]

    Permalink

    Returns all the distinct predicates in the file

    Returns all the distinct predicates in the file

    session

    Spark session

    path

    Path of the NT files to read. Could be a local, HDFS, S3 path

    returns

    RDD of Nodes which are predicates in the files

    Definition Classes
    ReaderRDF
  18. def loadSubjects(session: SparkSession, path: String): RDD[Node]

    Permalink

    Returns all the subjects in the file (but not the objects or predicates)

    Returns all the subjects in the file (but not the objects or predicates)

    session

    Spark session

    path

    Path of the NT files to read. Could be a local, HDFS, S3 path

    returns

    RDD of Nodes which are subjects in the files

    Definition Classes
    ReaderRDF
  19. def loadTriplets(sparkSession: SparkSession, path: String): RDD[Triple]

    Permalink

    Load the triplets initially

    Load the triplets initially

    sparkSession

    Spark session

    path

    Path of the NT files to read. Could be a local, HDFS, S3 path

    returns

    RDD of Triples {subject, predicate, object}

    Definition Classes
    ReaderRDF
  20. val log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    ReaderRDF
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. val processSparkSession: SparkSession

    Permalink
    Attributes
    protected
    Definition Classes
    TripleReaderReaderRDF
  25. def showTripletsRDD(tripletsRDD: RDD[Triple]): Unit

    Permalink

    Prints the current RDD of Triples Warning: this method needs to collect the RDD

    Prints the current RDD of Triples Warning: this method needs to collect the RDD

    Definition Classes
    ReaderRDF
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def Dep_getSubjectsWithProperty(graph: Graph[Node, Node], property: String): VertexRDD[Node]

    Permalink
    Definition Classes
    ReaderRDF
    Annotations
    @deprecated
    Deprecated
  2. def expandNodes(nodes: VertexRDD[Node], graph: Graph[Node, Node]): VertexRDD[Node]

    Permalink
    Definition Classes
    ReaderRDF
    Annotations
    @deprecated
    Deprecated

Inherited from ReaderRDF

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped