|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.triple.application.TripleServiceImpl
TRIPLE Service API
| Constructor Summary | |
TripleServiceImpl()
|
|
| Method Summary | |
void |
add(java.net.URL uri)
Add statements or rules in RDF/XML, N3, or TRIPLE syntax, according to the content type of the URI that contains the data. |
void |
addN3File(java.lang.String filename)
Compiles the N3 definitions provided by the file and adds the content incrementally to the into XSB. |
void |
addN3Stream(java.io.InputStream n3Stream)
Compiles the RDF definitions provided by the InputStream and adds the content temporarily to the internal Knowledge Base into the RDF model whose URI is constructed out of the provided namespace and localname. |
void |
addN3String(java.lang.String n3String)
Compiles the N3 definitions provided by the file and adds the content incrementally to the into XSB. |
void |
addRDFFile(java.lang.String filename,
java.lang.String ns,
java.lang.String localname)
Compiles the RDF definitions provided by the file and adds the content incrementally to the into the RDF model whose URI is constructed out of the provided namespace and localname. |
void |
addRDFFile(java.lang.String filename,
java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
|
void |
addRDFStream(java.io.InputStream rdfStream,
java.lang.String ns,
java.lang.String localname)
Compiles the RDF definitions provided by the InputStream and adds the content temporarily to the internal Knowledge Base into the RDF model whose URI is constructed out of the provided namespace and localname. |
void |
addRDFString(java.lang.String rdfString,
java.lang.String ns,
java.lang.String localname)
Compiles the RDF definitions provided by the String and adds the content incrementally to the into the RDF model whose URI is constructed out of the provided namespace and localname. |
void |
addRDFString(java.lang.String rdfString,
java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
|
void |
addTripleFile(java.lang.String filename)
Compiles the Triple definitions contained in the file and adds the content incrementally to the internal Knowledge Base. |
void |
addTripleStream(java.io.InputStream ruleStream)
Compiles the Triple definitions provided by the InputStream and adds the content incrementally to the internal Knowledge Base. |
void |
addTripleString(java.lang.String rules)
Compiles the Triple definitions contained in the string and adds the content incrementally to the internal Knowledge Base. |
void |
addXSBFile(java.lang.String filename)
Add XSB commands directly (suggested by Jose Luis). |
void |
addXSBStream(java.io.InputStream xsbStream)
Add XSB commands directly (suggested by Jose Luis). |
void |
addXSBString(java.lang.String xsbString)
Add XSB commands directly (suggested by Jose Luis). |
ResultSet |
askTripleQueryFile(java.lang.String filename)
Ask a query that's stored in a file. |
ResultSet |
askTripleQueryStream(java.io.InputStream queryStream)
Ask a query that's in a stream. |
ResultSet |
askTripleQueryString(java.lang.String queryString)
Ask a query that's stored in a string. |
void |
closeTriple()
Cleanup |
java.lang.String |
getDetails(java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
Get the RDF/XML data back that has been added before. |
void |
initTriple(java.lang.String rmiLocation)
Init. |
ResultSet |
query(java.net.URL uri)
Ask a query in TRIPLE syntax according to the content type of the URI that contains the query. |
void |
removeModel(java.lang.String ns,
java.lang.String localname)
Deletes the content of the RDF model who's ID is given by the namespace and the localname. |
void |
removeN3File(java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
Remove an RDF file. |
void |
removeRDFFile(java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
Remove an RDF file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TripleServiceImpl()
| Method Detail |
public void initTriple(java.lang.String rmiLocation)
throws XSBException,
java.rmi.RemoteException
initTriple in interface TripleServiceXSBException
java.rmi.RemoteException
public void closeTriple()
throws XSBException,
java.rmi.RemoteException
closeTriple in interface TripleServiceXSBException
java.rmi.RemoteException
public java.lang.String getDetails(java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
throws java.io.IOException
getDetails in interface TripleServicejava.io.IOException
public void add(java.net.URL uri)
throws ParseException,
java.io.IOException,
XSBException,
org.xml.sax.SAXException
add in interface TripleServiceParseException
java.io.IOException
XSBException
org.xml.sax.SAXException
public ResultSet query(java.net.URL uri)
throws java.io.IOException,
ParseException,
XSBException
query in interface TripleServicejava.io.IOException
ParseException
XSBException
public void removeModel(java.lang.String ns,
java.lang.String localname)
throws XSBException,
java.rmi.RemoteException
removeModel in interface TripleServiceXSBException
java.rmi.RemoteException
public ResultSet askTripleQueryFile(java.lang.String filename)
throws ParseException,
XSBException,
java.io.IOException
askTripleQueryFile in interface TripleServiceParseException
XSBException
java.io.IOException
public ResultSet askTripleQueryString(java.lang.String queryString)
throws ParseException,
XSBException,
java.io.IOException
askTripleQueryString in interface TripleServiceParseException
XSBException
java.io.IOException
public ResultSet askTripleQueryStream(java.io.InputStream queryStream)
throws ParseException,
XSBException,
java.io.IOException
askTripleQueryStream in interface TripleServiceParseException
XSBException
java.io.IOException
public void removeRDFFile(java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
throws org.xml.sax.SAXException,
java.io.IOException,
XSBException
removeRDFFile in interface TripleServiceorg.xml.sax.SAXException
java.io.IOException
XSBException
public void removeN3File(java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
throws org.xml.sax.SAXException,
java.io.IOException,
XSBException
removeN3File in interface TripleServiceorg.xml.sax.SAXException
java.io.IOException
XSBException
public void addTripleString(java.lang.String rules)
throws ParseException,
XSBException
addTripleString in interface TripleServiceParseException
XSBException
public void addTripleFile(java.lang.String filename)
throws ParseException,
java.io.IOException,
XSBException
addTripleFile in interface TripleServiceParseException
java.io.IOException
XSBException
public void addTripleStream(java.io.InputStream ruleStream)
throws ParseException,
XSBException
addTripleStream in interface TripleServiceParseException
XSBException
public void addN3File(java.lang.String filename)
throws java.io.IOException,
XSBException
addN3File in interface TripleServicejava.io.IOException
XSBException
public void addN3String(java.lang.String n3String)
throws java.io.IOException,
XSBException
addN3String in interface TripleServicejava.io.IOException
XSBException
public void addN3Stream(java.io.InputStream n3Stream)
throws java.io.IOException,
XSBException
addN3Stream in interface TripleServicejava.io.IOException
XSBException
public void addRDFFile(java.lang.String filename,
java.lang.String ns,
java.lang.String localname)
throws org.xml.sax.SAXException,
java.io.IOException,
XSBException
addRDFFile in interface TripleServiceorg.xml.sax.SAXException
java.io.IOException
XSBException
public void addRDFFile(java.lang.String filename,
java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
throws org.xml.sax.SAXException,
java.io.IOException,
XSBException
addRDFFile in interface TripleServiceorg.xml.sax.SAXException
java.io.IOException
XSBException
public void addRDFString(java.lang.String rdfString,
java.lang.String ns,
java.lang.String localname)
throws org.xml.sax.SAXException,
java.io.IOException,
XSBException
addRDFString in interface TripleServiceorg.xml.sax.SAXException
java.io.IOException
XSBException
public void addRDFString(java.lang.String rdfString,
java.lang.String ns,
java.lang.String localname,
java.lang.String appendix)
throws org.xml.sax.SAXException,
java.io.IOException,
XSBException
addRDFString in interface TripleServiceorg.xml.sax.SAXException
java.io.IOException
XSBException
public void addRDFStream(java.io.InputStream rdfStream,
java.lang.String ns,
java.lang.String localname)
throws org.xml.sax.SAXException,
java.io.IOException,
XSBException
addRDFStream in interface TripleServiceorg.xml.sax.SAXException
java.io.IOException
XSBException
public void addXSBFile(java.lang.String filename)
throws java.io.IOException,
XSBException
addXSBFile in interface TripleServicejava.io.IOException
XSBException
public void addXSBString(java.lang.String xsbString)
throws java.io.IOException,
XSBException
addXSBString in interface TripleServicejava.io.IOException
XSBException
public void addXSBStream(java.io.InputStream xsbStream)
throws java.io.IOException,
XSBException
addXSBStream in interface TripleServicejava.io.IOException
XSBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||