- [VocBench: SPARQL](http://vocbench.uniroma2.it/doc/user/sparql.jsf) #Documentation - Queries can be stored in VocBench according to the following patterns: - USER – specific for the user, on all projects) - PROJECT – specific for the project, on all users of that project - PROJECT_USER – specific to the user and only for that project - SYSTEM – visible to all users on all projects - Query several projects at once - [[Example]] - ```sparql SELECT * WHERE { ?localConcept a skos:Concept . SERVICE { ?countryConcept a skos:Concept . } } ``` #[[Federated Query]] #OP - In this example the query is executed in a project different than OP_TRAINING and combines results from both - #+BEGIN_NOTE The repository name might depend on the installation. In the VocBench installation of the [[Publications Office]], the repository name is the project name appended with `_core` #+END_NOTE - [[PREFIXES]] - ```turtle PREFIX adms: PREFIX cc: PREFIX cdm: PREFIX corrStatus: PREFIX dataTypeDefinitions: PREFIX dc: PREFIX dcat: PREFIX dct: PREFIX eli-o: PREFIX euvoc: PREFIX event: PREFIX externalImports: PREFIX foaf: PREFIX geosparql: PREFIX gn: PREFIX grddl: PREFIX internalImports: PREFIX isothes: PREFIX kml: PREFIX legalDescriptions: PREFIX lemon: PREFIX lexinfo: PREFIX lexvo: PREFIX linguisticDescriptions: PREFIX locn: PREFIX org: PREFIX organisationDescriptions: PREFIX owl: PREFIX prov: PREFIX rdf: PREFIX rdfs: PREFIX saxon-ext: PREFIX sf: PREFIX skos: PREFIX skosxl: PREFIX spatialDescriptions: PREFIX tableDescriptions: PREFIX temporalDescriptions: PREFIX time: PREFIX vcard: PREFIX void: PREFIX wgs: PREFIX xsd: PREFIX xsi: ```