org.nlp2rdf.core.impl
Class AbstractURIGenerator

java.lang.Object
  extended by org.nlp2rdf.core.impl.AbstractURIGenerator
All Implemented Interfaces:
URIGenerator
Direct Known Subclasses:
MD5Based, OffsetBased

public abstract class AbstractURIGenerator
extends Object
implements URIGenerator

User: @author Sebastian Hellmann Date: 10/13/11 Time: 6:15 AM


Constructor Summary
AbstractURIGenerator()
           
 
Method Summary
 opennlp.tools.util.Span getSpanFor(String prefix, String uri, String text, String anchoredPart)
           
 void init(String text, Set<opennlp.tools.util.Span> spans)
           
 String makeUri(String prefix, String text, opennlp.tools.util.Span span, com.hp.hpl.jena.ontology.OntModel model)
          Additionally creates the uri in the model and assigns the recipe class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nlp2rdf.core.URIGenerator
assignRecipeClass, getRecipeUri, makeUri
 

Constructor Detail

AbstractURIGenerator

public AbstractURIGenerator()
Method Detail

makeUri

public String makeUri(String prefix,
                      String text,
                      opennlp.tools.util.Span span,
                      com.hp.hpl.jena.ontology.OntModel model)
Description copied from interface: URIGenerator
Additionally creates the uri in the model and assigns the recipe class

Specified by:
makeUri in interface URIGenerator
Returns:

getSpanFor

public opennlp.tools.util.Span getSpanFor(String prefix,
                                          String uri,
                                          String text,
                                          String anchoredPart)
Specified by:
getSpanFor in interface URIGenerator

init

public void init(String text,
                 Set<opennlp.tools.util.Span> spans)
Specified by:
init in interface URIGenerator


Copyright © 2011. All Rights Reserved.