Class RdfSourceFromRdd<T>

java.lang.Object
net.sansa_stack.spark.io.rdf.input.api.RdfSourceFromRdd<T>
All Implemented Interfaces:
NodeTupleSource, RdfLikeSource, RdfSource

public class RdfSourceFromRdd<T> extends Object implements RdfSource
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.jena.rdf.model.Model
     
    protected RddRdfOps<T>
     
    protected org.apache.spark.api.java.JavaRDD<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RdfSourceFromRdd(org.apache.spark.api.java.JavaRDD<T> rdd, RddRdfOps<T> dispatcher, org.apache.jena.rdf.model.Model declaredPrefixes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.spark.rdd.RDD<org.aksw.jenax.arq.dataset.api.DatasetOneNg>
    A stream of datasets having one named graph each
    org.apache.spark.rdd.RDD<org.apache.jena.rdf.model.Model>
     
    org.apache.spark.rdd.RDD<org.apache.jena.sparql.core.Quad>
     
    org.apache.spark.rdd.RDD<org.apache.jena.graph.Triple>
    Return the backing loader; null if unknown
    int
     
    org.apache.jena.rdf.model.Model
    At present this creates a model holding an RDF sample based on a file's starting bytes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.sansa_stack.spark.io.rdf.input.api.RdfSource

    usesQuads
  • Field Details

    • rdd

      protected org.apache.spark.api.java.JavaRDD<T> rdd
    • dispatcher

      protected RddRdfOps<T> dispatcher
    • declaredPrefixes

      protected org.apache.jena.rdf.model.Model declaredPrefixes
  • Constructor Details

    • RdfSourceFromRdd

      public RdfSourceFromRdd(org.apache.spark.api.java.JavaRDD<T> rdd, RddRdfOps<T> dispatcher, org.apache.jena.rdf.model.Model declaredPrefixes)
  • Method Details

    • getComponentCount

      public int getComponentCount()
      Specified by:
      getComponentCount in interface NodeTupleSource
    • peekDeclaredPrefixes

      public org.apache.jena.rdf.model.Model peekDeclaredPrefixes()
      Description copied from interface: RdfLikeSource
      At present this creates a model holding an RDF sample based on a file's starting bytes. May be changed to PrefixMap
      Specified by:
      peekDeclaredPrefixes in interface RdfLikeSource
    • asTriples

      public org.apache.spark.rdd.RDD<org.apache.jena.graph.Triple> asTriples()
      Description copied from interface: RdfSource
      Return the backing loader; null if unknown
      Specified by:
      asTriples in interface RdfSource
    • asQuads

      public org.apache.spark.rdd.RDD<org.apache.jena.sparql.core.Quad> asQuads()
      Specified by:
      asQuads in interface RdfSource
    • asModels

      public org.apache.spark.rdd.RDD<org.apache.jena.rdf.model.Model> asModels()
      Specified by:
      asModels in interface RdfSource
    • asDatasets

      public org.apache.spark.rdd.RDD<org.aksw.jenax.arq.dataset.api.DatasetOneNg> asDatasets()
      Description copied from interface: RdfSource
      A stream of datasets having one named graph each
      Specified by:
      asDatasets in interface RdfSource