Virtuoso SPARQL Query Editor
About
|
Namespace Prefixes
|
Inference rules
Default Data Set Name (Graph IRI)
Query Text
select ?Declaracion, ?identificadorFuente, ?FechaDeclaracion, ?NombreDeclarante, ?ApellidoPaternoDeclarante, ?ApellidoMaternoDeclarante, ?Institucion,?TipoDeclaracion, ?Cargo, IF( contains(?Cargo, 'MINISTR'), 'MINISTRO', ( IF( contains(?Cargo, 'SUBSECRETARI'), 'SUBSECRETARIO', ( IF( contains(?Cargo, 'CONCEJAL'), 'CONCEJAL', ( IF( contains(?Cargo, 'ALCALDE'), 'ALCALDE', xsd:string(?Cargo)))))))) as ?CargoCalculado where { ?Declaracion dip:tipoDeclaracion ?UTipoDe; dip:declaracionDe ?UriDeclarante; dip:poseeCargo ?UCargo; dip:identificadorFuente ?identificadorFuente. ?UriDeclarante dip:declara ?Declaracion; dip:nombre ?NombreDeclarante; dip:apellidoPaterno ?ApellidoPaternoDeclarante. optional{?UriDeclarante dip:apellidoMaterno ?ApellidoMaternoDeclarante.} ?Declaracion dip:fechaDeclaracion ?FechaDeclaracion; dip:perteneceA ?UInstitucion. ?UInstitucion rdfs:label ?Institucion. ?UTipoDe rdfs:label ?TipoDeclaracion. ?UCargo rdfs:label ?Cargo. optional{?Declaracion dip:perteneceA ?organo. ?organo rdfs:label ?organismo; dip:tipoInstitucion ?tipoOrganismo. ?tipoOrganismo rdfs:label ?nombreTipoOrganismo.} optional{?c a dip:Candidato; dip:declara ?Declaracion. ?Declaracion dip:poseeCargo ?uriCargo. ?uriCargo rdfs:label ?CandCargo.} FILTER ( contains(?Institucion,'PROCESO CONSTITUCIONAL')&& (contains(?Cargo,'MIEMBRO DEL CONSEJO CONSTITUCIONAL')) )}
(Security restrictions of this server do not allow you to retrieve remote RDF data, see
details
.)
Results Format
Auto
HTML
Spreadsheet
XML
JSON
Javascript
Turtle
RDF/XML
N-Triples
CSV
TSV
Execution timeout
milliseconds
(values less than 1000 are ignored)
Options
Strict checking of void variables
(The result can only be sent back to browser, not saved on the server, see
details
)