org.nlp2rdf.core.impl
Class OffsetBased

java.lang.Object
  extended by org.nlp2rdf.core.impl.AbstractURIGenerator
      extended by org.nlp2rdf.core.impl.OffsetBased
All Implemented Interfaces:
URIGenerator

public class OffsetBased
extends AbstractURIGenerator
implements URIGenerator

User: Sebastian Hellmann - http://bis.informatik.uni-leipzig.de/SebastianHellmann


Field Summary
static String identifier
           
 
Constructor Summary
OffsetBased()
           
 
Method Summary
 void assignRecipeClass(String uri, com.hp.hpl.jena.ontology.OntModel model)
          adds an rdf:type statement to model for the respective recipe
 String getRecipeUri()
          This returns the recipe class form the String ontology: http://nlp2rdf.lod2.eu/schema/string/
 opennlp.tools.util.Span getSpanFor(String prefix, String uri, String text, String anchoredPart)
           
 String makeUri(String base, String text, opennlp.tools.util.Span span)
          Depending on the implementation, it might be necessary to call init before calling this function
 
Methods inherited from class org.nlp2rdf.core.impl.AbstractURIGenerator
init, makeUri
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nlp2rdf.core.URIGenerator
init, makeUri
 

Field Detail

identifier

public static final String identifier
See Also:
Constant Field Values
Constructor Detail

OffsetBased

public OffsetBased()
Method Detail

getRecipeUri

public String getRecipeUri()
Description copied from interface: URIGenerator
This returns the recipe class form the String ontology: http://nlp2rdf.lod2.eu/schema/string/

Specified by:
getRecipeUri in interface URIGenerator
Returns:
a URI from http://nlp2rdf.lod2.eu/schema/string/

assignRecipeClass

public void assignRecipeClass(String uri,
                              com.hp.hpl.jena.ontology.OntModel model)
Description copied from interface: URIGenerator
adds an rdf:type statement to model for the respective recipe

Specified by:
assignRecipeClass in interface URIGenerator

makeUri

public String makeUri(String base,
                      String text,
                      opennlp.tools.util.Span span)
Description copied from interface: URIGenerator
Depending on the implementation, it might be necessary to call init before calling this function

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
Overrides:
getSpanFor in class AbstractURIGenerator


Copyright © 2011. All Rights Reserved.