Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Ajouter un widget de requête Comunica SPARQL #2

Open
ColinMaudry opened this issue Jan 21, 2019 · 2 comments
Open

Ajouter un widget de requête Comunica SPARQL #2

ColinMaudry opened this issue Jan 21, 2019 · 2 comments
Assignees

Comments

@ColinMaudry
Copy link
Owner

ColinMaudry commented Jan 21, 2019

Afin de pouvoir requêter le graphe sireneLD depuis l'interface Web, le client Comunica SPARQL de @comunica est tout désigné :

  • possibilité de requêter plusieurs sources de données (endpoint SPARQL, fichiers HDT, etc.)
  • écrit en Javascript
@ColinMaudry ColinMaudry self-assigned this Jan 21, 2019
@ColinMaudry
Copy link
Owner Author

J'ai importé dans ma pages les fichiers JS buildé et CSS, ainsi que le markup HTML du Widget.

Mon fichier queries;json (ci-dessous) n'est apparemment pas bien géré, je reçois l'erreur suivante :

TypeError: this.$queryTextsIndexed[i.queryFormat] is undefined

Mon fichier queries.json :

 {
  "queryFormats": {
    "sparql": true
  },
  "datasources": [
    {
      "name": "SIRENE Unité légales",
      "url": "https://ldf.sireneld.io/sirene-unite-legale"
    }
  ],
  "prefixes": {
    "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
    "owl": "http://www.w3.org/2002/07/owl#",
    "skos": "http://www.w3.org/2004/02/skos/core#",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dc": "http://purl.org/dc/terms/",
    "foaf": "http://xmlns.com/foaf/0.1/",
    "dbpedia": "http://dbpedia.org/resource/",
    "dbpedia-owl": "http://dbpedia.org/ontology/",
    "dbpprop": "http://dbpedia.org/property/",
    "schema": "http://schema.org/",
    "wd": "http://www.wikidata.org/entity/",
    "wdt": "http://www.wikidata.org/prop/direct/",
    "sirene": "https://sireneld.io/vocab/sirene#",
    "sirext": "https://sireneld.io/vocab/sirext#"
  },
  "queries": [
    {
      "name": "The missing link between Vermeersch and Mortier",
      "datasources": ["https://ldf.sireneld.io/sirene-unite-legale"],
      "queryFormat": "sparql",
      "query": "SELECT DISTINCT ?coauthorName {\n  ?publication1 dc:creator ?coauthor, [ foaf:name \"Etienne Vermeersch\" ].\n  ?publication2 dc:creator ?coauthor, [ foaf:name \"Freddy Mortier\" ].\n  ?coauthor foaf:name ?coauthorName.\n}"
    }
  ]
}

@ColinMaudry
Copy link
Owner Author

Prochaine tentative : déployer le widget dans un page à part et l'afficher via une iframe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant