Class LiteralInDatasetImpl

java.lang.Object
org.apache.jena.enhanced.Polymorphic<org.apache.jena.rdf.model.RDFNode>
org.apache.jena.enhanced.EnhNode
org.apache.jena.rdf.model.impl.LiteralImpl
org.aksw.jenax.arq.dataset.impl.LiteralInDatasetImpl
All Implemented Interfaces:
LiteralInDataset, RDFNodeInDataset, org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.Literal, org.apache.jena.rdf.model.RDFNode

public class LiteralInDatasetImpl extends org.apache.jena.rdf.model.impl.LiteralImpl implements LiteralInDataset
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.jena.query.Dataset
     
    protected String
     

    Fields inherited from class org.apache.jena.rdf.model.impl.LiteralImpl

    factory

    Fields inherited from class org.apache.jena.enhanced.EnhNode

    enhGraph, node
  • Constructor Summary

    Constructors
    Constructor
    Description
    LiteralInDatasetImpl(org.apache.jena.query.Dataset dataset, String graphName, org.apache.jena.graph.Node node)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    org.apache.jena.query.Dataset
     
    The named graph such that r.getDataset().getNamedGraph(r.getGraphName()).equals(r.getModel()) While the model and possibly graph instances may not be reference equal due to being different views, they should still operate on the same underlying collection of triples.
    inDataset(org.apache.jena.query.Dataset other)
     

    Methods inherited from class org.apache.jena.rdf.model.impl.LiteralImpl

    asStatementTerm, getBaseDirection, getBoolean, getByte, getChar, getDatatype, getDatatypeURI, getDouble, getFloat, getInt, getLanguage, getLexicalForm, getLong, getModel, getShort, getString, getValue, inModel, sameValueAs, toString, visitWith

    Methods inherited from class org.apache.jena.enhanced.EnhNode

    as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, isValid, viewAs

    Methods inherited from class org.apache.jena.enhanced.Polymorphic

    addView, alreadyHasView, asInternal, supports

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jena.graph.FrontsNode

    asNode

    Methods inherited from interface org.apache.jena.rdf.model.Literal

    equals, getBaseDirection, getBoolean, getByte, getChar, getDatatype, getDatatypeURI, getDouble, getFloat, getInt, getLanguage, getLexicalForm, getLong, getShort, getString, getTextDirection, getValue, inModel, sameValueAs

    Methods inherited from interface org.apache.jena.rdf.model.RDFNode

    as, asStatementTerm, canAs, getModel, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, toString, visitWith

    Methods inherited from interface org.aksw.jenax.arq.dataset.api.RDFNodeInDataset

    asRDFNodeInDatasetHere, mutateRDFNode
  • Field Details

    • dataset

      protected org.apache.jena.query.Dataset dataset
    • graphName

      protected String graphName
  • Constructor Details

    • LiteralInDatasetImpl

      public LiteralInDatasetImpl(org.apache.jena.query.Dataset dataset, String graphName, org.apache.jena.graph.Node node)
  • Method Details

    • getGraphName

      public String getGraphName()
      Description copied from interface: RDFNodeInDataset
      The named graph such that r.getDataset().getNamedGraph(r.getGraphName()).equals(r.getModel()) While the model and possibly graph instances may not be reference equal due to being different views, they should still operate on the same underlying collection of triples.
      Specified by:
      getGraphName in interface RDFNodeInDataset
      Returns:
    • getDataset

      public org.apache.jena.query.Dataset getDataset()
      Specified by:
      getDataset in interface RDFNodeInDataset
    • asLiteral

      public LiteralInDatasetImpl asLiteral()
      Specified by:
      asLiteral in interface LiteralInDataset
      Specified by:
      asLiteral in interface org.apache.jena.rdf.model.RDFNode
      Specified by:
      asLiteral in interface RDFNodeInDataset
      Overrides:
      asLiteral in class org.apache.jena.rdf.model.impl.LiteralImpl
    • inDataset

      public LiteralInDatasetImpl inDataset(org.apache.jena.query.Dataset other)
      Specified by:
      inDataset in interface LiteralInDataset
      Specified by:
      inDataset in interface RDFNodeInDataset
    • asResource

      public ResourceInDataset asResource()
      Specified by:
      asResource in interface org.apache.jena.rdf.model.RDFNode
      Specified by:
      asResource in interface RDFNodeInDataset
      Overrides:
      asResource in class org.apache.jena.rdf.model.impl.LiteralImpl