|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.monnetproject.lemon.LemonModels
public final class LemonModels
Set of static task that work on lemon models
Method Summary | |
---|---|
static LexicalEntry |
addEntryToLexicon(Lexicon lexicon,
URI entryURI,
String canForm,
URI senseRef)
Quickly add a lexical entry to a lexicon |
static Collection<LexicalEntry> |
getEntriesAlphabetic(LemonModel model,
Lexicon lexicon,
int offset,
int limit)
Get all the entries in a lexicon as an alphabetic sorted list |
static List<LexicalEntry> |
getEntriesByForm(LemonModel model,
LexicalForm form)
Select a lexical entry by its form |
static List<LexicalEntry> |
getEntriesByForm(LemonModel model,
String form,
String lang)
Select a lexical entry by the form's representation |
static List<LexicalEntry> |
getEntriesByFormAndProps(LemonModel model,
String form,
String lang,
Map<Property,PropertyValue> props)
Get entries by their written representation and properties |
static List<LexicalEntry> |
getEntriesByFormApprox(LemonModel model,
String form)
Select a lexical entry by the form's representation, using regex |
static Map<URI,List<LexicalEntry>> |
getEntriesBySense(LemonModel model,
Lexicon lexicon,
int offset,
int limit)
Get entries in a lexicon mapped by the references they have |
static List<LexicalEntry> |
getEntryByReference(LemonModel model,
URI reference)
Get the set of entries that refer to a given reference |
static List<LexicalEntry> |
getEntryByReference(Lexicon lexicon,
URI reference)
|
static LexicalEntry |
getEntryBySense(LemonModel model,
LexicalSense sense)
Get the set of entries that refer to a given sense |
static List<Lexicon> |
getLexicaByEntry(LemonModel model,
LexicalEntry entry)
Get the set of lexica containing a given entry |
static LexicalForm |
resolveForm(LexicalEntry entry,
Map<Property,Collection<PropertyValue>> properties)
|
static LemonModel |
sparqlEndpoint(URL endpoint,
Set<URI> graphs,
LinguisticOntology lingOnto)
Connect to a lemon model contained in a SPARQL endpoint |
static LemonModel |
sparqlUpdateEndpoint(URL sparqlEndpoint,
URI graph,
LinguisticOntology lingOnto,
String updateEndpoint,
SPARQL dialect)
Connect to a lemon model in a repository supporting SPARQL and SPARQL update |
static LemonModel |
sparqlUpdateEndpoint(URL sparqlEndpoint,
URI graph,
LinguisticOntology lingOnto,
String updateEndpoint,
String username,
String password,
SPARQL dialect)
Connect to a lemon model in a repository supporting SPARQL and SPARQL update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<LexicalEntry> getEntriesByForm(LemonModel model, String form, String lang)
model
- The model containing the appropriate lexicaform
- The representation of the formlang
- The languages of the formpublic static List<LexicalEntry> getEntriesByFormApprox(LemonModel model, String form)
model
- The model containing the appropriate lexicaform
- The representation of the formpublic static List<LexicalEntry> getEntriesByForm(LemonModel model, LexicalForm form)
model
- The model containing the appropriate lexicaform
- The form objectpublic static List<Lexicon> getLexicaByEntry(LemonModel model, LexicalEntry entry)
model
- The model containing the appropriate lexicaentry
- The entrypublic static List<LexicalEntry> getEntryByReference(LemonModel model, URI reference)
model
- The model containing the appropriate lexicareference
- The uri referencepublic static List<LexicalEntry> getEntryByReference(Lexicon lexicon, URI reference)
public static LexicalEntry getEntryBySense(LemonModel model, LexicalSense sense)
model
- The model containing the appropriate lexicasense
- The sense objectpublic static Collection<LexicalEntry> getEntriesAlphabetic(LemonModel model, Lexicon lexicon, int offset, int limit)
model
- The model containing the lexicalexicon
- The lexicon to listoffset
- The first entry to showlimit
- The maximum number of entries to return, 0 for no limitpublic static Map<URI,List<LexicalEntry>> getEntriesBySense(LemonModel model, Lexicon lexicon, int offset, int limit)
model
- The model containing all the lexicalexicon
- The lexicon containg all entriesoffset
- The first entry to returnlimit
- The maxiumum number of entries to return, 0 for unlimitedpublic static List<LexicalEntry> getEntriesByFormAndProps(LemonModel model, String form, String lang, Map<Property,PropertyValue> props)
model
- The model containing all lexicaform
- The written representation of the formlang
- The language of the formprops
- The set of properties the entry object haspublic static LexicalEntry addEntryToLexicon(Lexicon lexicon, URI entryURI, String canForm, URI senseRef)
Lexicon
- The lexiconentryURI
- The identifier for the entrycanForm
- The canonical formsense
- The reference of the sense URIpublic static LexicalForm resolveForm(LexicalEntry entry, Map<Property,Collection<PropertyValue>> properties)
public static LemonModel sparqlEndpoint(URL endpoint, Set<URI> graphs, LinguisticOntology lingOnto)
endpoint
- The URL of the SPARQL endpointgraphs
- The graphs in the endpoint to uselingOnto
- The linguistic ontology to use (may be null)
public static LemonModel sparqlUpdateEndpoint(URL sparqlEndpoint, URI graph, LinguisticOntology lingOnto, String updateEndpoint, SPARQL dialect)
sparqlEndpoint
- The URL of the endpoint for querying, e.g.,
"http://localhost:8080/sparql"graph
- The graph to use in the endpointlingOnto
- The linguistic ontology to use (may be null)updateEndpoint
- The URL pattern for the endpoint with query, e.g.,
"http://localhost:8080/sparql-auth?query="dialect
- Which dialect of SPARQL to use, e.g., SPARUL for Virtuoso,
SPARQL11 for 4store
public static LemonModel sparqlUpdateEndpoint(URL sparqlEndpoint, URI graph, LinguisticOntology lingOnto, String updateEndpoint, String username, String password, SPARQL dialect)
sparqlEndpoint
- The URL of the endpoint for querying, e.g.,
"http://localhost:8080/sparql"graph
- The graph to use in the endpointlingOnto
- The linguistic ontology to use (may be null)updateEndpoint
- The URL pattern for the endpoint with query, e.g.,
"http://localhost:8080/sparql-auth?query="username
- The user name to use to authenticatepassword
- The password to use to authenticatedialect
- Which dialect of SPARQL to use, e.g., SPARUL for Virtuoso,
SPARQL11 for 4store
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |