# Dans le graphe par défautcurl-XPOSThttp://localhost:7878/store\-H"Content-Type: text/turtle"\--data-binary@fichier.ttl
# Dans un graphe nommécurl-XPOST\"http://localhost:7878/store?graph=https://data.example.gouv.fr/graph/org"\-H"Content-Type: text/turtle"\--data-binary@fichier.ttl
# Remplacer entièrement un graphe (PUT)curl-XPUT\"http://localhost:7878/store?graph=https://data.example.gouv.fr/graph/org"\-H"Content-Type: text/turtle"\--data-binary@fichier.ttl
# Exporter tout le store en N-Quadscurlhttp://localhost:7878/store\-H"Accept: application/n-quads">export.nq
# Exporter un graphe nommé en Turtlecurl"http://localhost:7878/store?graph=https://data.example.gouv.fr/graph/org"\-H"Accept: text/turtle">organisations.ttl
# Démarrer le serveuroxigraphserve--location./data--bind0.0.0.0:7878
# Charger un fichier directement (sans serveur HTTP)oxigraphload--location./data--filefichier.ttl
# Charger dans un graphe nomméoxigraphload--location./data--filefichier.ttl\--graphhttps://data.example.gouv.fr/graph/org
# Exporteroxigraphdump--location./data--outputexport.nq
# SELECT — projeter des variablesSELECT?nom?siretWHERE{?orglegal:legalName?nom;legal:legalIdentifier?siret.}# OPTIONAL — jointure externeSELECT?nom?urlWHERE{?orglegal:legalName?nom.OPTIONAL{?orgschema:url?url.}}# FILTER — filtrer les résultatsFILTER(LANG(?nom)="fr")FILTER(STRSTARTS(?siret,"13"))FILTER(REGEX(?nom,"^Agence","i"))# UNION — réunion de patterns{?orgalegal:LegalEntity.}UNION{?orgaorg:Organization.}# GROUP BY / HAVING — agrégationSELECT?type(COUNT(?org)AS?nb)WHERE{?orga?type.}GROUP BY?typeHAVING(COUNT(?org)>1)# CONSTRUCT — produire du RDFCONSTRUCT{?orglegal:legalName?nom.}WHERE{?orglegal:legalName?nom.FILTER(LANG(?nom)="fr")}# ASK — vérifier l'existenceASK{<https://data.example.gouv.fr/org/dinum>alegal:LegalEntity.}# SERVICE — requête fédéréeSELECT?labelWHERE{SERVICE<https://query.wikidata.org/sparql>{wd:Q3286621rdfs:label?label.FILTER(LANG(?label)="fr")}}