org.nlp2rdf.core
Class Text2RDF

java.lang.Object
  extended by org.nlp2rdf.core.Text2RDF

public class Text2RDF
extends Object

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


Field Summary
static String stringOntologyUrl
           
static String structuredSentenceOntologyUrl
           
 
Constructor Summary
Text2RDF()
           
 
Method Summary
 void addSSOproperties(String prefix, String text, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel m)
           
 Document createDocumentAnnotation(String prefix, String text, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel in)
           
 Phrase createPhraseAnnotation(String prefix, String text, opennlp.tools.util.Span span, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel in)
           
 Sentence createSentenceAnnotation(String prefix, String text, opennlp.tools.util.Span span, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel in)
           
 Word createWordAnnotation(String prefix, String text, opennlp.tools.util.Span span, URIGenerator uriGenerator, com.hp.hpl.jena.ontology.OntModel in)
           
 com.hp.hpl.jena.ontology.OntModel process(String prefix, String text, Tokenizer tokenizer, URIGenerator uriGenerator)
          Deprecated. 
 void sentencePOJOs2OWL(String prefix, String text, List<? extends SentencePOJO> sentencePOJOs, com.hp.hpl.jena.ontology.OntModel model, URIGenerator uriGenerator)
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringOntologyUrl

public static final String stringOntologyUrl
See Also:
Constant Field Values

structuredSentenceOntologyUrl

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

Text2RDF

public Text2RDF()
Method Detail

createDocumentAnnotation

public Document createDocumentAnnotation(String prefix,
                                         String text,
                                         URIGenerator uriGenerator,
                                         com.hp.hpl.jena.ontology.OntModel in)

createWordAnnotation

public Word createWordAnnotation(String prefix,
                                 String text,
                                 opennlp.tools.util.Span span,
                                 URIGenerator uriGenerator,
                                 com.hp.hpl.jena.ontology.OntModel in)

createPhraseAnnotation

public Phrase createPhraseAnnotation(String prefix,
                                     String text,
                                     opennlp.tools.util.Span span,
                                     URIGenerator uriGenerator,
                                     com.hp.hpl.jena.ontology.OntModel in)

createSentenceAnnotation

public Sentence createSentenceAnnotation(String prefix,
                                         String text,
                                         opennlp.tools.util.Span span,
                                         URIGenerator uriGenerator,
                                         com.hp.hpl.jena.ontology.OntModel in)

addSSOproperties

public void addSSOproperties(String prefix,
                             String text,
                             URIGenerator uriGenerator,
                             com.hp.hpl.jena.ontology.OntModel m)

process

@Deprecated
public com.hp.hpl.jena.ontology.OntModel process(String prefix,
                                                            String text,
                                                            Tokenizer tokenizer,
                                                            URIGenerator uriGenerator)
Deprecated. 

returns a basic model for the sentence

Returns:

sentencePOJOs2OWL

@Deprecated
public void sentencePOJOs2OWL(String prefix,
                                         String text,
                                         List<? extends SentencePOJO> sentencePOJOs,
                                         com.hp.hpl.jena.ontology.OntModel model,
                                         URIGenerator uriGenerator)
Deprecated. 

Generates the NIF RDF and fills the supplied model. Also the URIs are set in the POJOs, so there is a modification of the parameter objects, i.e. the function is not transparent.

Parameters:
prefix -
text -
sentencePOJOs -
model - The model which should be filled during
uriGenerator -


Copyright © 2011. All Rights Reserved.