public class ARQParserUtilities extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
static org.apache.jena.graph.Node |
XSD_BOOLEAN_FALSE
Jena node for "false"^^xsd:boolean
|
static org.apache.jena.graph.Node |
XSD_BOOLEAN_TRUE
Jena node for "true"^^xsd:boolean
|
| Constructor and Description |
|---|
ARQParserUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.jena.graph.Node |
createNonNegativeInteger(String s)
Create an xsd:nonNegativeInteger literal from a string.
|
static boolean |
isOWL2Datatype(org.apache.jena.graph.Node n)
Test if a
Node is an OWL 2 datatype. |
static org.apache.jena.graph.Node |
listToTriples(List<org.apache.jena.graph.Node> nodes,
Collection<org.apache.jena.graph.Triple> triples)
Construct an RDF container from a
List of nodes, preserving
the ordering |
public static final org.apache.jena.graph.Node XSD_BOOLEAN_FALSE
public static final org.apache.jena.graph.Node XSD_BOOLEAN_TRUE
public static org.apache.jena.graph.Node createNonNegativeInteger(String s)
s - A String of the number to be parsedNodepublic static boolean isOWL2Datatype(org.apache.jena.graph.Node n)
Node is an OWL 2 datatype.n - The Node to testtrue if n matches the URI of an OWL 2
datatype, else falsepublic static org.apache.jena.graph.Node listToTriples(List<org.apache.jena.graph.Node> nodes, Collection<org.apache.jena.graph.Triple> triples)
List of nodes, preserving
the orderingnodes - The list of Nodestriples - A mutable container to which the Triples
representing the container will be added.Copyright © 2019. All rights reserved.