public class SparqlParser
extends java.lang.Object
results
section and nesting all binding
elements below that
into a tree structure, where each binding content is stored for its category name
.
If there are no binding elements, the result is undetermined.Constructor and Description |
---|
SparqlParser()
Create a new instance of SparqlParser
|
Modifier and Type | Method and Description |
---|---|
SparqlResultSet |
parseJSON(java.lang.String toParse)
Parse the XML element into a Tree structure.
|
SparqlResultSet |
parseXML(java.lang.String toParse)
Parse the XML element into a Tree structure.
|
public SparqlResultSet parseXML(java.lang.String toParse) throws java.lang.Exception
toParse
- the string to parse. Must be converted to XML first.java.lang.Exception
- any error.public SparqlResultSet parseJSON(java.lang.String toParse) throws java.lang.Exception
toParse
- the JSON-format element to parse.java.lang.Exception
- any error.