org.dllearner.kb.aquisitors
Class RDFBlankNode

java.lang.Object
  extended by org.dllearner.kb.aquisitors.RDFBlankNode
All Implemented Interfaces:
com.hp.hpl.jena.graph.FrontsNode, com.hp.hpl.jena.rdf.model.RDFNode

public class RDFBlankNode
extends Object
implements com.hp.hpl.jena.rdf.model.RDFNode

This class is used to save disambiguated information for a blankNode in an RDF Graph. It is used to silently transport the info to the layer above.

Author:
Sebastian Hellmann

Constructor Summary
RDFBlankNode(int id, com.hp.hpl.jena.rdf.model.RDFNode blankNode)
           
 
Method Summary
 com.hp.hpl.jena.rdf.model.RDFNode as(Class view)
           
 com.hp.hpl.jena.rdf.model.Literal asLiteral()
          
 com.hp.hpl.jena.graph.Node asNode()
           
 com.hp.hpl.jena.rdf.model.Resource asResource()
          
 boolean canAs(Class view)
           
 int getBNodeId()
           
 com.hp.hpl.jena.rdf.model.Model getModel()
          
 com.hp.hpl.jena.rdf.model.RDFNode inModel(com.hp.hpl.jena.rdf.model.Model m)
           
 boolean isAnon()
           
 boolean isLiteral()
           
 boolean isResource()
           
 boolean isURIResource()
           
 String toString()
           
 Object visitWith(com.hp.hpl.jena.rdf.model.RDFVisitor rv)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFBlankNode

public RDFBlankNode(int id,
                    com.hp.hpl.jena.rdf.model.RDFNode blankNode)
Method Detail

getBNodeId

public int getBNodeId()

toString

public String toString()
Specified by:
toString in interface com.hp.hpl.jena.rdf.model.RDFNode
Overrides:
toString in class Object

as

public com.hp.hpl.jena.rdf.model.RDFNode as(Class view)
Specified by:
as in interface com.hp.hpl.jena.rdf.model.RDFNode

canAs

public boolean canAs(Class view)
Specified by:
canAs in interface com.hp.hpl.jena.rdf.model.RDFNode

inModel

public com.hp.hpl.jena.rdf.model.RDFNode inModel(com.hp.hpl.jena.rdf.model.Model m)
Specified by:
inModel in interface com.hp.hpl.jena.rdf.model.RDFNode

isAnon

public boolean isAnon()
Specified by:
isAnon in interface com.hp.hpl.jena.rdf.model.RDFNode

isLiteral

public boolean isLiteral()
Specified by:
isLiteral in interface com.hp.hpl.jena.rdf.model.RDFNode

isResource

public boolean isResource()
Specified by:
isResource in interface com.hp.hpl.jena.rdf.model.RDFNode

isURIResource

public boolean isURIResource()
Specified by:
isURIResource in interface com.hp.hpl.jena.rdf.model.RDFNode

visitWith

public Object visitWith(com.hp.hpl.jena.rdf.model.RDFVisitor rv)
Specified by:
visitWith in interface com.hp.hpl.jena.rdf.model.RDFNode

asNode

public com.hp.hpl.jena.graph.Node asNode()
Specified by:
asNode in interface com.hp.hpl.jena.graph.FrontsNode

getModel

public com.hp.hpl.jena.rdf.model.Model getModel()

Specified by:
getModel in interface com.hp.hpl.jena.rdf.model.RDFNode

asResource

public com.hp.hpl.jena.rdf.model.Resource asResource()

Specified by:
asResource in interface com.hp.hpl.jena.rdf.model.RDFNode

asLiteral

public com.hp.hpl.jena.rdf.model.Literal asLiteral()

Specified by:
asLiteral in interface com.hp.hpl.jena.rdf.model.RDFNode


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann