org.dllearner.kb.extraction
Class LiteralNode

java.lang.Object
  extended by org.dllearner.kb.extraction.Node
      extended by org.dllearner.kb.extraction.LiteralNode

public class LiteralNode
extends Node

A node in the graph that is a Literal.

Author:
Sebastian Hellmann

Field Summary
 
Fields inherited from class org.dllearner.kb.extraction.Node
DEBUGTAIL
 
Constructor Summary
LiteralNode(com.hp.hpl.jena.rdf.model.RDFNode node)
           
LiteralNode(String uri)
           
 
Method Summary
 List<Node> expand(TupleAquisitor tupelAquisitor, Manipulator manipulator)
          Nodes are expanded with a certain context, given by the typedSparqlQuery and the manipulator
 List<BlankNode> expandProperties(TupleAquisitor tupelAquisitor, Manipulator manipulator, boolean dissolveBlankNodes)
          gets type defs for properties like rdf:type SymmetricProperties
 com.hp.hpl.jena.rdf.model.Literal getLiteral()
           
 String getNTripleForm()
           
 boolean hasLanguageTag()
           
 boolean isBoolean()
           
 boolean isDouble()
           
 boolean isFloat()
           
 boolean isInt()
           
 boolean isString()
           
 SortedSet<String> toNTriple()
          output
 void toOWLOntology(OWLAPIOntologyCollector owlAPIOntologyCollector)
           
 
Methods inherited from class org.dllearner.kb.extraction.Node
getIRI, getURIString, isExpanded, tail, tail, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiteralNode

public LiteralNode(String uri)

LiteralNode

public LiteralNode(com.hp.hpl.jena.rdf.model.RDFNode node)
Method Detail

getLiteral

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

expand

public List<Node> expand(TupleAquisitor tupelAquisitor,
                         Manipulator manipulator)
Description copied from class: Node
Nodes are expanded with a certain context, given by the typedSparqlQuery and the manipulator

Specified by:
expand in class Node
Returns:
Vector all Nodes that are new because of expansion

expandProperties

public List<BlankNode> expandProperties(TupleAquisitor tupelAquisitor,
                                        Manipulator manipulator,
                                        boolean dissolveBlankNodes)
Description copied from class: Node
gets type defs for properties like rdf:type SymmetricProperties

Specified by:
expandProperties in class Node

toNTriple

public SortedSet<String> toNTriple()
Description copied from class: Node
output

Specified by:
toNTriple in class Node
Returns:
a set of n-triple

getNTripleForm

public String getNTripleForm()
Overrides:
getNTripleForm in class Node

toOWLOntology

public void toOWLOntology(OWLAPIOntologyCollector owlAPIOntologyCollector)
Specified by:
toOWLOntology in class Node

isDouble

public boolean isDouble()

isFloat

public boolean isFloat()

isInt

public boolean isInt()

isBoolean

public boolean isBoolean()

isString

public boolean isString()

hasLanguageTag

public boolean hasLanguageTag()


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