173 Matching Annotations
  1. Sep 2023
  2. Aug 2023
  3. Jul 2023
  4. Jun 2023
    1. ```sparql PREFIX pm20: http://purl.org/pressemappe20/folder/ PREFIX p: http://www.wikidata.org/prop/ PREFIX pq: http://www.wikidata.org/prop/qualifier/ PREFIX skos: http://www.w3.org/2004/02/skos/core# PREFIX wdt: http://www.wikidata.org/prop/direct/ PREFIX wd: http://www.wikidata.org/entity/

      SELECT ?wd ?skosRelation ?pm20

      construct {

      ?wd ?skosRelation ?pm20 .

      }

      where { service https://query.wikidata.org/sparql { # wd items with PM20 ID ?wd wdt:P4293 ?pm20Id . filter(isLiteral(?pm20Id)) # # mapping relation optional { ?wd p:P4293/pq:P4390 ?relation . # URL of the equivalent skos property ?relation wdt:P2699 ?skosRelation1 . } } # bind as URIs bind(uri(concat('http://purl.org/pressemappe20/folder/', ?pm20Id)) as ?pm20) bind(if(bound(?skosRelation1), ?skosRelation1, uri('http://www.w3.org/2004/02/skos/core#exactMatch')) as ?skosRelation) } ```

  5. May 2023
    1. 4.1 RDF/XML Service Description

      ```bash

      Given the HTTP request:

      GET /sparql/ HTTP/1.1 Host: www.example

      the SPARQL service responds with an RDF/XML encoded

      service description (no content negotiation or RDFa

      encoding is used):

      HTTP/1.1 200 OK Date: Fri, 09 Oct 2009 17:31:12 GMT Server: Apache/1.3.29 (Unix) PHP/4.3.4 DAV/1.0.3 Connection: close Content-Type: application/rdf+xml

      <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sd="http://www.w3.org/ns/sparql-service-description#" xmlns:prof="http://www.w3.org/ns/owl-profile/" xmlns:void="http://rdfs.org/ns/void#"> <sd:Service> <sd:endpoint rdf:resource="http://www.example/sparql/"/> <sd:supportedLanguage rdf:resource="http://www.w3.org/ns/sparql-service-description#SPARQL11Query"/> <sd:resultFormat rdf:resource="http://www.w3.org/ns/formats/RDF_XML"/> <sd:resultFormat rdf:resource="http://www.w3.org/ns/formats/Turtle"/> <sd:feature rdf:resource="http://www.w3.org/ns/sparql-service-description#DereferencesURIs"/> <sd:defaultEntailmentRegime rdf:resource="http://www.w3.org/ns/entailment/RDFS"/> <sd:extensionFunction> <sd:Function rdf:about="http://example.org/Distance"/> </sd:extensionFunction> <sd:defaultDataset> <sd:Dataset> <sd:defaultGraph> <sd:Graph> <void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">100</void:triples> </sd:Graph> </sd:defaultGraph> <sd:namedGraph> <sd:NamedGraph> <sd:name rdf:resource="http://www.example/named-graph"/> <sd:entailmentRegime rdf:resource="http://www.w3.org/ns/entailment/OWL-RDF-Based"/> <sd:supportedEntailmentProfile rdf:resource="http://www.w3.org/ns/owl-profile/RL"/> <sd:graph> <sd:Graph> <void:triples rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">2000</void:triples> </sd:Graph> </sd:graph> </sd:NamedGraph> </sd:namedGraph> </sd:Dataset> </sd:defaultDataset> </sd:Service> </rdf:RDF> ```

    1. sparql SELECT ?type (COUNT(DISTINCT ?oeuvre) AS ?c) WHERE { VALUES ?type { wd:Q838948 } ?oeuvre wdt:P31 ?type. { ?oeuvre ?link ?museum. } union { ?museum ?link ?oeuvre. } ?museum wdt:P31 wd:Q33506. } GROUP BY ?type ORDER BY DESC (?c)

  6. Apr 2023
  7. Mar 2023
    1. ```sparql PREFIX wd: http://www.wikidata.org/entity/ PREFIX gist: https://ontologies.semanticarts.com/gist/ PREFIX dcterms: http://purl.org/dc/terms/

      SELECT DISTINCT ?commitTitle ?commitTime ?filename ?textLine WHERE {

      ?commit a wd:Q20058545 ; # it's a commit gist:hasPart ?part ; dcterms:subject ?commitSubject ; gist:atDateTime ?commitTime .

      ?commitSubject dcterms:title ?commitTitle .

      ?part gist:produces ?contiguousLines .

      ?contiguousLines gist:occursIn ?file ; http://example.com/containedTextContainer ?textContainer .

      ?file gist:name ?filename . ?textContainer ?line ?textLine .

      FILTER(contains(?textLine,"music")) } ```

  8. Jan 2023
  9. Dec 2022
  10. Nov 2022
  11. Oct 2022
  12. Sep 2022
  13. Aug 2022
  14. Jul 2022
  15. Jun 2022
    1. Servizi

      Forse evidenzierei di già la possibilità di usare standard come SPARQL per accedere ai dati. Mentre per accedere ai dati in CSV (o dati su database) ho necessità di creare delle interfacce ad-hoc

  16. May 2022
    1. ```sparql PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX i: http://learningsparql.com/ns/instrument/ PREFIX s: http://learningsparql.com/ns/schema/ PREFIX b: http://www.bobdc.com/ns/beatles/

      SELECT ?britishGroup WHERE { ?bassist b:favoriteBritishGroup ?britishGroup . SERVICE https://dydra.com/bobdc/beatles-musicians/sparql { SELECT ?bassist WHERE { ?song a s:Song ; rdfs:label "The Long And Wi