SparqlHelperConfig.printRelease();will print on System.out:
SparlHelper version: 0.3 release: 11/03/2026
SparqlPrefixDeclarations prefixDecl = new SparqlPrefixDeclarations(); prefixDecl.addPrefix("sitac", "http://example.com/"); prefixDecl.addGeoSparqlPrefix(); prefixDecl.addOwlTimePrefix(); SparqlHelperConfig.getInstance().setDefaultPrefixDeclarations(prefixDecl); SparqlRequest request = new SparqlRequest("sitac"); request.addSelect("zone"); request.addType("zone", "TaskZone"); request.addPropertyValue("zone", "isTasked", true); String sparql = request.getSPARQL();The result will be:
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX geo: <http://www.opengis.net/ont/geosparql#> PREFIX geof: <http://www.opengis.net/def/function/geosparql/> PREFIX sitac: <http://example.com/> PREFIX time: <http://www.w3.org/2006/time#> PREFIX unit: <http://qudt.org/vocab/unit#> PREFIX uom: <http://www.opengis.net/def/uom/OGC/1.0/#> SELECT ?zone WHERE { ?zone rdf:type sitac:TaskZone . ?zone sitac:isTasked "true" . }
Copyright 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence