sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
527 lines (465 loc) • 21.3 kB
text/turtle
schema: <http://schema.org/> .
volipi: <http://data.sparna.fr/ontologies/volipi#> .
owl: <http://www.w3.org/2002/07/owl#> .
wdt: <http://www.wikidata.org/prop/direct/> .
xsd: <http://www.w3.org/2001/XMLSchema#> .
skosthes: <http://purl.org/iso25964/skos-thes#> .
rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
geo: <http://www.opengis.net/ont/geosparql#> .
qb: <http://purl.org/linked-data/cube#> .
doap: <http://usefulinc.com/ns/doap#> .
sh: <http://www.w3.org/ns/shacl#> .
dcterms: <http://purl.org/dc/terms/> .
dcat: <http://www.w3.org/ns/dcat#> .
euvoc: <http://publications.europa.eu/ontology/euvoc#> .
prov: <http://www.w3.org/ns/prov#> .
foaf: <http://xmlns.com/foaf/0.1/> .
adms: <http://www.w3.org/ns/adms#> .
org: <http://www.w3.org/ns/org#> .
xls2rdf: <https://xls2rdf.sparna.fr/vocabulary#> .
this: <https://data.mydomain.com/ontologies/sparnatural-config/> .
dbpedia: <http://dbpedia.org/ontology/> .
odb: <http://example.com/ontology/odb#> .
core: <http://data.sparna.fr/ontologies/sparnatural-config-core#> .
datasources: <http://data.sparna.fr/ontologies/sparnatural-config-datasources#> .
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
dash: <http://datashapes.org/dash#> .
sparql: <http://www.w3.org/ns/sparql-service-description#> .
dc: <http://purl.org/dc/elements/1.1/> .
skos: <http://www.w3.org/2004/02/skos/core#> .
skosxl: <http://www.w3.org/2008/05/skos-xl#> .
<https://data.mydomain.com/ontologies/sparnatural-config> a owl:Ontology;
dcterms:source <https://docs.google.com/spreadsheets/d/1raPi-qimg5gdD_3jWdBVlQqwbmKGIlVf>;
dcterms:format <https://xls2rdf.sparna.fr/rest/convert?url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1raPi-qimg5gdD_3jWdBVlQqwbmKGIlVf%2Fexport%3Fformat%3Dxlsx&noPostProcessings=true> .
this:Artwork a sh:NodeShape;
sh:order "1"^^xsd:integer;
volipi:iconName "fa-solid fa-paint-brush";
sh:targetClass dbpedia:Artwork;
sh:nodeKind sh:IRI;
rdfs:label "Artwork", "Oeuvre";
sh:description "A piece of art that can be displayed in a museum", "Une Œuvre qui peut être exposée dans un musée";
sh:property this:Artwork_label, this:Artwork_author, this:Artwork_creationYear, this:Artwork_displayedAt,
this:Artwork_thumbnail, this:Artwork_description .
this:Museum a sh:NodeShape;
sh:order "2"^^xsd:integer;
volipi:iconName "fa-solid fa-university";
sh:targetClass dbpedia:Museum;
sh:nodeKind sh:IRI;
rdfs:label "Museum", "Musée";
sh:description "A DBPedia Museum", "Un Musée DBPedia";
sh:property this:Museum_country, this:Museum_label, this:Museum_numberOfVisitors,
this:Museum_displays, this:Museum_inWikidata, this:Museum_thumbnail, this:Museum_description .
this:Country a sh:NodeShape;
sh:order "3"^^xsd:integer;
volipi:iconName "fa-solid fa-globe-africa";
sh:targetClass dbpedia:Country;
sh:nodeKind sh:IRI;
rdfs:label "Country", "Pays";
sh:description "A DBPedia Country", "Un Pays DBPedia";
sh:property this:Country_countryOf, this:Country_label, this:Country_deathPlace, this:Country_birthPlace .
this:Person a sh:NodeShape;
sh:order "4"^^xsd:integer;
volipi:iconName "fa-solid fa-male";
sh:targetClass dbpedia:Person;
sh:nodeKind sh:IRI;
rdfs:label "Person", "Personne";
sh:description "A person, here usually a painter or sculptor", "Une personne, ici souvent un peintre ou un scupteur";
sh:property this:Person_bornIn, this:Person_diedIn, this:Person_label, this:Person_birthDate,
this:Person_classifiedIn, this:Person_created, this:Person_deathYear, this:Person_movement,
this:Person_thumbnail, this:Person_description, this:Person_date .
this:Movement a sh:NodeShape;
sh:order "5"^^xsd:integer;
volipi:iconName "fa-solid fa-palette";
sh:nodeKind sh:IRI;
rdfs:label "Movement", "Mouvement";
sh:description "A school of artists, a painting style", "Une école d'artistes, un style pictural";
sh:property this:Movement_movementIncludes, this:Movement_description, this:Movement_label .
this:Category a sh:NodeShape;
sh:order "6"^^xsd:integer;
volipi:iconName "fa-solid fa-palette";
sh:nodeKind sh:IRI;
rdfs:label "Category", "Catégorie";
sh:description "A wikipedia category", "Une catégorie Wikipedia" .
this:MuseumWikidata a sh:NodeShape;
sh:order "7"^^xsd:integer;
volipi:iconName "fa-solid fa-university";
sh:nodeKind sh:IRI;
rdfs:label "Wikidata Museum", "Musée Wikidata";
sh:description "The record of the Museum in Wikidata.", "La fiche du musée dans Wikidata";
sh:property this:MuseumWikidata_situe_a .
this:Image a sh:NodeShape;
sh:order "10"^^xsd:integer;
volipi:iconName "fa-solid fa-image";
sh:nodeKind sh:Literal;
rdfs:label "Image", "Image" .
this:Date a sh:NodeShape;
sh:order "11"^^xsd:integer;
volipi:iconName "fa-solid fa-calendar-alt";
sh:nodeKind sh:Literal;
rdfs:label "Date", "Date";
sh:description "A date or a year", "Une date ou une année" .
this:Position a sh:NodeShape;
sh:order "12"^^xsd:integer;
volipi:iconName "fa-solid fa-map";
sh:nodeKind sh:Literal;
rdfs:label "Position", "Position";
sh:description "Position on a map, expressed as WKT datatype, queried in GeoSPARQL",
"Position sur une carte, exprimée en WKT, requếtée avec GeoSPARQL" .
this:Text a sh:NodeShape;
sh:order "13"^^xsd:integer;
volipi:iconName "fa-solid fa-a";
sh:nodeKind sh:Literal;
rdfs:label "Text", "Texte";
sh:description "An attribute, a property that describes the object, like a name or a description. <br/><br/>Use this to select the name of the object.",
"Un attribut qui caractérise l'objet, comme un nom ou une description. <br/><br/>Choisissez ceci pour sélectionner le nom de l'objet" .
this:Number a sh:NodeShape;
sh:order "14"^^xsd:integer;
volipi:iconName "fa-solid fa-1";
sh:nodeKind sh:Literal;
rdfs:label "Number", "Nombre" .
this:Artwork_label sh:path rdfs:label;
sh:name "label", "libellé";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:SearchProperty;
dash:propertyRole dash:LabelRole;
core:enableOptional "false"^^xsd:boolean;
core:enableNegation "false"^^xsd:boolean .
this:Artwork_author sh:path dbpedia:author;
sh:name "author", "auteur";
sh:description "the artist, painter or sculptor who created the artwork", "l'artiste, le peintre ou le sculpteur qui a créé l'œuvre";
sh:nodeKind sh:IRI;
sh:class dbpedia:Person;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:search_rdfslabel_bifcontains;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Artwork_creationYear sh:path dbpedia:creationYear;
sh:name "creationYear", "année de création";
sh:nodeKind sh:Literal;
sh:datatype xsd:gYear;
sh:node this:Date;
dash:searchWidget core:TimeProperty-Year;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Artwork_displayedAt sh:path (
[
sh:zeroOrMorePath [
sh:alternativePath (
dbpedia:museum
[ sh:inversePath dbpedia:displays ]
)
]
]
[
sh:zeroOrMorePath [
sh:alternativePath (
dbpedia:museum
[ sh:inversePath dbpedia:displays ]
)
]
]
);
sh:name "displayed at", "exposée à";
sh:nodeKind sh:IRI;
sh:class dbpedia:Museum;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:search_rdfslabel_bifcontains;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Artwork_thumbnail sh:path dbpedia:thumbnail;
sh:name "thumbnail", "vignette";
sh:nodeKind sh:IRI;
sh:node this:Image;
dash:searchWidget core:NonSelectableProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Artwork_description sh:path rdfs:comment;
sh:name "description", "description";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:SearchProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Museum_country sh:path dbpedia:country;
sh:name "country", "pays";
sh:description "Specifies the country where the museum is located.", "Spécifie le pays où se trouve le musée.";
sh:nodeKind sh:IRI;
sh:class dbpedia:Country;
dash:searchWidget core:ListProperty;
datasources:datasource datasources:list_rdfslabel_count;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Museum_label sh:path rdfs:label;
sh:name "label", "libellé";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:SearchProperty;
dash:propertyRole dash:LabelRole;
core:enableOptional "false"^^xsd:boolean;
core:enableNegation "false"^^xsd:boolean .
this:Museum_numberOfVisitors sh:path dbpedia:numberOfVisitors;
sh:name "number of visitors", "nombre de visiteurs";
sh:nodeKind sh:Literal;
sh:node this:Number;
dash:searchWidget core:NumberProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Museum_displays sh:path _:a3498c4a778c4f829e250049f6184b3d5349;
sh:name "displays", "expose";
sh:nodeKind sh:IRI;
sh:class dbpedia:Artwork;
dash:searchWidget core:NonSelectableProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5349 sh:alternativePath _:a3498c4a778c4f829e250049f6184b3d5350 .
_:a3498c4a778c4f829e250049f6184b3d5350 rdf:first dbpedia:displays;
rdf:rest _:a3498c4a778c4f829e250049f6184b3d5351 .
_:a3498c4a778c4f829e250049f6184b3d5351 rdf:first _:a3498c4a778c4f829e250049f6184b3d5352;
rdf:rest rdf:nil .
_:a3498c4a778c4f829e250049f6184b3d5352 sh:inversePath dbpedia:museum .
this:Museum_inWikidata sh:path owl:sameAs;
sh:name "has other record", "autre fiche";
sh:nodeKind sh:IRI;
sh:node this:MuseumWikidata;
dash:searchWidget core:NonSelectableProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Museum_thumbnail sh:path dbpedia:thumbnail;
sh:name "thumbnail", "vignette";
sh:nodeKind sh:IRI;
sh:node this:Image;
dash:searchWidget core:NonSelectableProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Museum_description sh:path rdfs:comment;
sh:name "description", "description";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:SearchProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Country_countryOf sh:path _:a3498c4a778c4f829e250049f6184b3d5353;
sh:name "country of", "pays de";
sh:description "Specifies the museums located in this country.", "Spécifie les musées situés dans ce pays.";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:IRI;
sh:class dbpedia:Museum;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:search_rdfslabel_bifcontains;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5353 sh:inversePath dbpedia:country .
this:Country_label sh:path rdfs:label;
sh:name "label", "libellé";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:AutocompleteProperty;
dash:propertyRole dash:LabelRole;
core:enableOptional "false"^^xsd:boolean;
core:enableNegation "false"^^xsd:boolean .
this:Country_deathPlace sh:path _:a3498c4a778c4f829e250049f6184b3d5354;
sh:order "2";
sh:name "death place of", "lieu de décès de";
sh:description "Persons who died in this country.<br/><br/><em>Note : in DBPedia, persons are linked to the city where they died, and the city is linked to the country.</em>",
"Les personnes décédées dans ce pays.<br/><br/><em>A noter : dans DBPedia, les personnes sont liées à leur ville de décès, et la ville est reliée au pays.</em>";
sh:nodeKind sh:IRI;
sh:class dbpedia:Person;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:search_rdfslabel_bifcontains;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5354 sh:inversePath dbpedia:deathPlace .
this:Country_birthPlace sh:path _:a3498c4a778c4f829e250049f6184b3d5355;
sh:order "1";
sh:name "birth place of", "lieu de naissance de";
sh:description "Persons who were born in this country.<br/><br/><em>Note : in DBPedia, persons are linked to the city in which they were born, and the city is linked to the country.</em>",
"Les personnes nées dans ce pays.<br/><br/><em>A noter : dans DBPedia, les personnes sont liées à leur ville de naissance, et la ville est reliée au pays.</em>";
sh:nodeKind sh:IRI;
sh:class dbpedia:Person;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:search_rdfslabel_bifcontains;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5355 sh:inversePath dbpedia:birthPlace .
this:Person_bornIn sh:path _:a3498c4a778c4f829e250049f6184b3d5356;
sh:order "1";
sh:name "born in", "né à / né en";
sh:description "Persons who were born in this country.<br/><br/><em>Note : in DBPedia, persons are linked to the city in which they were born, and the city is linked to the country.</em>",
"Les personnes nées dans ce pays.<br/><br/><em>A noter : dans DBPedia, les personnes sont liées à leur ville de naissance, et la ville est reliée au pays.</em>";
sh:maxCount "1"^^xsd:integer;
sh:nodeKind sh:IRI;
sh:class dbpedia:Country;
dash:searchWidget core:ListProperty;
datasources:datasource datasources:list_rdfslabel_alpha_with_count;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5356 rdf:first dbpedia:birthPlace;
rdf:rest _:a3498c4a778c4f829e250049f6184b3d5357 .
_:a3498c4a778c4f829e250049f6184b3d5357 rdf:first dbpedia:country;
rdf:rest rdf:nil .
this:Person_diedIn sh:path _:a3498c4a778c4f829e250049f6184b3d5358;
sh:order "2";
sh:name "died in", "mort à / mort en";
sh:description "The country where the person died.<br/><br/><em>Note : in DBPedia, persons are linked to the city where they died, and the city is linked to the country.</em>",
"Le pays où la personne est décédée.<br/><br/><em>A noter : dans DBPedia, les personnes sont liées à leur ville de décès, et la ville est reliée au pays.</em>";
sh:maxCount "1"^^xsd:integer;
sh:nodeKind sh:IRI;
sh:class dbpedia:Country;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:list_rdfslabel_alpha_with_count;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5358 rdf:first dbpedia:deathPlace;
rdf:rest _:a3498c4a778c4f829e250049f6184b3d5359 .
_:a3498c4a778c4f829e250049f6184b3d5359 rdf:first dbpedia:country;
rdf:rest rdf:nil .
this:Person_label sh:path rdfs:label;
sh:name "label", "libellé";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:SearchProperty;
dash:propertyRole dash:LabelRole;
core:enableOptional "false"^^xsd:boolean;
core:enableNegation "false"^^xsd:boolean .
this:Person_birthDate sh:path dbpedia:birthDate;
sh:order "1";
sh:name "birth date", "date de naissance";
sh:nodeKind sh:Literal;
sh:node this:Date;
dash:searchWidget core:TimeProperty-Date;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Person_date sh:path this:date;
sh:order "1";
sh:name "vivant en", "living in";
sh:nodeKind sh:Literal;
sh:node this:Date;
dash:searchWidget core:TimeProperty-Date;
core:beginDateProperty this:Person_birthDate;
core:endDateProperty this:Person_deathYear;
.
this:Person_classifiedIn sh:path dcterms:subject;
sh:name "category", "catégorie";
sh:nodeKind sh:IRI;
sh:node this:Category;
dash:searchWidget core:TreeProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean;
datasources:treeRootsDatasource this:tree_root_frenchPainters;
datasources:treeChildrenDatasource datasources:tree_children_skosnarrower .
this:Person_created sh:path _:a3498c4a778c4f829e250049f6184b3d5360;
sh:name "created", "a créé";
sh:nodeKind sh:IRI;
sh:class dbpedia:Artwork;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:search_rdfslabel_bifcontains;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5360 sh:inversePath dbpedia:author .
this:Person_deathYear sh:path dbpedia:deathYear;
sh:order "2";
sh:name "death year", "année de décès";
sh:nodeKind sh:Literal;
sh:datatype xsd:gYear;
sh:node this:Date;
dash:searchWidget core:TimeProperty-Year;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Person_movement sh:path dbpedia:movement;
sh:name "movement", "mouvement";
sh:nodeKind sh:IRI;
sh:node this:Movement;
dash:searchWidget core:ListProperty;
datasources:datasource datasources:list_rdfslabel_count;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Person_thumbnail sh:path dbpedia:thumbnail;
sh:name "thumbnail", "vignette";
sh:nodeKind sh:IRI;
sh:node this:Image;
dash:searchWidget core:NonSelectableProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Person_description sh:path rdfs:comment;
sh:name "description", "description";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:SearchProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Movement_movementIncludes sh:path _:a3498c4a778c4f829e250049f6184b3d5361;
sh:name "participant", "participant";
sh:nodeKind sh:IRI;
sh:class dbpedia:Person;
dash:searchWidget core:AutocompleteProperty;
datasources:datasource datasources:search_rdfslabel_bifcontains;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
_:a3498c4a778c4f829e250049f6184b3d5361 sh:inversePath dbpedia:movement .
this:Movement_description sh:path rdfs:comment;
sh:name "description", "description";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:SearchProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean .
this:Movement_label sh:path rdfs:label;
sh:name "label", "libellé";
sh:minCount "1"^^xsd:integer;
sh:nodeKind sh:Literal;
sh:datatype rdf:langString;
sh:node this:Text;
dash:searchWidget core:AutocompleteProperty;
dash:propertyRole dash:LabelRole;
core:enableOptional "false"^^xsd:boolean;
core:enableNegation "false"^^xsd:boolean .
this:MuseumWikidata_situe_a sh:path wdt:P625;
sh:name "located at", "situé à";
sh:nodeKind sh:IRI;
sh:node this:Position;
dash:searchWidget core:MapProperty;
core:enableOptional "true"^^xsd:boolean;
core:enableNegation "true"^^xsd:boolean;
core:sparqlService <https://www.wikidata.org> .
this:tree_root_frenchPainters a datasources:SparqlTreeRootDatasource;
datasources:queryString """PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?uri ?label ?hasChildren
WHERE {
VALUES ?uri {<http://fr.dbpedia.org/resource/Catégorie:Peintre_français>}
?uri skos:prefLabel ?label .
FILTER(lang(?label) = '' || lang(?label) = $lang)
BIND(true AS ?hasChildren)
}""" .
<https://www.wikidata.org> a sparql:Service;
sparql:endpoint <https://query.wikidata.org/> .
this:query_search_label_contains_langfr a datasources:SPARQLQuery;
datasources:queryString """SELECT DISTINCT ?uri ?label
WHERE {
?domain a $domain .
?domain $property ?uri .
?uri a $range .
?uri $labelPath ?label .
FILTER(isIRI(?uri))
FILTER(CONTAINS(LCASE(STR(?label)), LCASE(\"$key\")))
FILTER(lang(?label) = '' || lang(?label) = \"fr\")
}
ORDER BY UCASE(?label)
LIMIT 50""";
rdfs:comment "A query that will search in labels using contains function, first in the user language but will default to French." .