public class SparqlPrefixDeclarations
extends java.lang.Object
| Constructor and Description |
|---|
SparqlPrefixDeclarations()
Default constructor.
|
SparqlPrefixDeclarations(boolean writePrefix)
Constructor.
|
SparqlPrefixDeclarations(SparqlPrefixDeclarations parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGeoSparqlPrefix()
Add the prefixes for geoSparql.
|
void |
addGeoSparqlPrefix(boolean addGeoSparqlToPrefix)
Set if the prefixes for geoSparql should be should be added automatically to the prefixes list.
|
void |
addOwlTimePrefix()
Add the prefix for owl-time.
|
void |
addOwlTimePrefix(boolean addOwlTimeToPrefix)
Set if the prefixes for owl-timer should be should be added automatically to the prefixes list.
|
void |
addPrefix(java.lang.String prefix,
IRI iri)
Add a prefix.
|
void |
addPrefix(java.lang.String prefix,
java.lang.String iri)
Add a prefix.
|
void |
addXPathPrefix(boolean addXPathToPrefix)
Set if the XPath math functions should be added automatically to the prefix.
|
IRI |
getIRI(java.lang.String prefix)
Return the IRI associated with a prefix.
|
java.lang.String |
getPrefix(java.lang.String iri)
Return the prefix associated with an IRI.
|
boolean |
hasGeoSparqlPrefix()
Return true if there is the prefix for GeoSparql.
|
boolean |
hasIRI(java.lang.String prefix)
Return true if there is an IRI associated with a prefix.
|
boolean |
hasOwlTimePrefix()
Return true if there is the prefix for Owl-Time.
|
boolean |
hasPrefix(java.lang.String iri)
Return true if there is a prefix associated with an IRI.
|
boolean |
hasXPathPrefix()
Return true if the XPath math functions should be added automatically to the prefixes list.
|
boolean |
isWritingPrefix()
Return true if the prefixes must be written in the resulting SPARQL expressions.
|
void |
setWritePrefix(boolean writePrefix)
Set if the the prefixes must be written in the resulting SPARQL expressions.
|
java.lang.String |
toString() |
java.lang.String |
write()
Write the declarations corresponding to the prefix to IRI association.
|
java.lang.String |
write(boolean writePrefix)
Write the declarations corresponding to the prefix to IRI association.
|
public SparqlPrefixDeclarations(boolean writePrefix)
writePrefix - true if the prefixes must be written in the resulting SPARQL expressionspublic SparqlPrefixDeclarations()
public SparqlPrefixDeclarations(SparqlPrefixDeclarations parent)
parent - the parent declarationpublic void setWritePrefix(boolean writePrefix)
writePrefix - true if the the prefixes must be written in the resulting SPARQL expressionspublic boolean isWritingPrefix()
public void addXPathPrefix(boolean addXPathToPrefix)
addXPathToPrefix - if the XPath math functions should be added automatically to the prefixpublic boolean hasXPathPrefix()
public void addGeoSparqlPrefix(boolean addGeoSparqlToPrefix)
addGeoSparqlToPrefix - true if the prefixes for geoSparql should be should be added automatically to the prefixes listpublic void addGeoSparqlPrefix()
public boolean hasGeoSparqlPrefix()
public boolean hasOwlTimePrefix()
public void addOwlTimePrefix(boolean addOwlTimeToPrefix)
addOwlTimeToPrefix - true if the prefixes for geoSparql should be should be added automatically to the prefixes listpublic void addOwlTimePrefix()
public void addPrefix(java.lang.String prefix,
IRI iri)
prefix - the prefixiri - the associated IRIpublic void addPrefix(java.lang.String prefix,
java.lang.String iri)
prefix - the prefixiri - the associated IRIpublic IRI getIRI(java.lang.String prefix)
prefix - the prefixpublic java.lang.String getPrefix(java.lang.String iri)
iri - the IRIpublic boolean hasIRI(java.lang.String prefix)
prefix - the prefixpublic boolean hasPrefix(java.lang.String iri)
iri - the IRIpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String write()
public java.lang.String write(boolean writePrefix)
writePrefix - true if the prefiw should be writtenCopyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence