public class Lexicon extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addCommonNamespaces(ModelConnection mc) |
void |
addURI(org.openrdf.model.URI uri) |
String |
findSymbol(org.openrdf.model.URI uri) |
jline.Completor |
getCompletor() |
String |
getDefaultNamespace() |
String |
getNamespaceUri(String prefix) |
boolean |
isValidLocalName(String localName) |
boolean |
isValidPrefix(String prefix) |
void |
putTemporaryValue(String name,
RippleValue value) |
void |
removeNamespace(String prefix)
Removes a namespace definition.
|
void |
resolveKeyword(String keyword,
Sink<RippleValue> solutions,
ModelConnection mc,
PrintStream errors) |
void |
setNamespace(String prefix,
String uri,
ModelConnection mc)
Defines a new prefix:namespace pair.
|
Set<org.openrdf.model.URI> |
uriForKeyword(String localName) |
void |
uriForQName(String nsPrefix,
String localName,
Sink<RippleValue> sink,
ModelConnection mc,
PrintStream errors) |
public Lexicon(Model model) throws RippleException
RippleExceptionpublic boolean isValidPrefix(String prefix)
public boolean isValidLocalName(String localName)
public String findSymbol(org.openrdf.model.URI uri)
public jline.Completor getCompletor()
throws RippleException
RippleExceptionpublic void resolveKeyword(String keyword, Sink<RippleValue> solutions, ModelConnection mc, PrintStream errors) throws RippleException
RippleExceptionpublic void uriForQName(String nsPrefix, String localName, Sink<RippleValue> sink, ModelConnection mc, PrintStream errors) throws RippleException
RippleExceptionpublic String getDefaultNamespace() throws RippleException
RippleExceptionpublic void setNamespace(String prefix, String uri, ModelConnection mc) throws RippleException
prefix - the prefix of the namespace, e.g. "foaf"uri - the URI to which the prefix is bound, e.g. "http://xmlns.com/foaf/0.1/"RippleExceptionpublic void removeNamespace(String prefix)
prefix - the prefix of the namespace to removepublic void addURI(org.openrdf.model.URI uri)
throws RippleException
RippleExceptionpublic void addCommonNamespaces(ModelConnection mc) throws RippleException
RippleExceptionpublic void putTemporaryValue(String name, RippleValue value)
Copyright © 2007-2012 fortytwo.net. All Rights Reserved.