|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.clarkparsia.sparqlowl.parser.arq.ARQParserUtilities
public class ARQParserUtilities
Title: ARQ Parser Utilities
Description: Static utility methods and fields used by the ANTLR generated ARQ Tree Walker source. This code is in a separate Java file rather than in the ANTLR sources to make it easier to maintain with comfortable Java tools (e.g., Eclipse).
Copyright: Copyright (c) 2010
Company: Clark & Parsia, LLC.
| Field Summary | |
|---|---|
static com.hp.hpl.jena.graph.Node |
XSD_BOOLEAN_FALSE
Jena node for "false"^^xsd:boolean |
static com.hp.hpl.jena.graph.Node |
XSD_BOOLEAN_TRUE
Jena node for "true"^^xsd:boolean |
| Constructor Summary | |
|---|---|
ARQParserUtilities()
|
|
| Method Summary | |
|---|---|
static com.hp.hpl.jena.graph.Node |
createNonNegativeInteger(java.lang.String s)
Create an xsd:nonNegativeInteger literal from a string. |
static boolean |
isOWL2Datatype(com.hp.hpl.jena.graph.Node n)
Test if a Node is an OWL 2 datatype. |
static com.hp.hpl.jena.graph.Node |
listToTriples(java.util.List<com.hp.hpl.jena.graph.Node> nodes,
java.util.Collection<com.hp.hpl.jena.graph.Triple> triples)
Construct an RDF container from a List of nodes, preserving
the ordering |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final com.hp.hpl.jena.graph.Node XSD_BOOLEAN_FALSE
public static final com.hp.hpl.jena.graph.Node XSD_BOOLEAN_TRUE
| Constructor Detail |
|---|
public ARQParserUtilities()
| Method Detail |
|---|
public static com.hp.hpl.jena.graph.Node createNonNegativeInteger(java.lang.String s)
s - A String of the number to be parsed
Nodepublic static boolean isOWL2Datatype(com.hp.hpl.jena.graph.Node n)
Node is an OWL 2 datatype.
n - The Node to test
true if n matches the URI of an OWL 2
datatype, else false
public static com.hp.hpl.jena.graph.Node listToTriples(java.util.List<com.hp.hpl.jena.graph.Node> nodes,
java.util.Collection<com.hp.hpl.jena.graph.Triple> triples)
List of nodes, preserving
the ordering
nodes - The list of Nodestriples - A mutable container to which the Triples
representing the container will be added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||