public class SparqlPrefixDeclarations
extends java.lang.Object
| Constructor and Description |
|---|
SparqlPrefixDeclarations() |
SparqlPrefixDeclarations(boolean writePrefix)
Constructor.
|
SparqlPrefixDeclarations(SparqlPrefixDeclarations parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGeoSparqlPrefix()
Add the prefixes for geoSparql.
|
void |
addOwlTimePrefix()
Add the prefix for owl-time.
|
void |
addPrefix(java.lang.String prefix,
IRI iri)
Add a prefix.
|
void |
addPrefix(java.lang.String prefix,
java.lang.String iri)
Add a 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 |
hasIRI(java.lang.String prefix)
Return true if there is an IRI associated with a prefix.
|
boolean |
hasPrefix(java.lang.String iri)
Return true if there is a prefix associated with an IRI.
|
boolean |
isWritingPrefix()
Return true if the 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 addGeoSparqlPrefix()
public 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