Skip to content

Instantly share code, notes, and snippets.

View gatemezing's full-sized avatar

Ghislain gatemezing

View GitHub Profile

Change log since v3.0.0

Revision 03-12-2024:

  • fix explicit definition of the primary and subsidiary locations.
  • Added era:formatNote property and annotations.

Revision 02-12-2024:

  • added the Turtle file generated from excel file annotated by ERA.
@gatemezing
gatemezing / selectAnnotations.rq
Last active November 27, 2024 17:20
query to generate annotations for properties in the ontology
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix era: <http://data.europa.eu/949/>
prefix dcterms: <http://purl.org/dc/terms/>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
SELECT *
WHERE {
<http://data.europa.eu/949/> rdf:type owl:Ontology ;
cc:license <https://creativecommons.org/licenses/by/4.0/> ;
dcterms:contributor
[ foaf:name "Maarten Duhoux" ;
org:memberOf <http://publications.europa.eu/resource/authority/corporate-body/ERA>
] ,
[ foaf:name "Marina Aguado" ;
org:memberOf <http://publications.europa.eu/resource/authority/corporate-body/ERA>
] ,
@gatemezing
gatemezing / dir2008-57.ttl
Created July 28, 2024 07:47
Directive - 2008/57 -EN - EUR-Lex
<http://data.europa.eu/eli/dir/2008/57/oj> rdf:type eli:LegalResource .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:uri_schema <http://data.europa.eu/eli/%7Btypedoc%7D/%7Byear%7D/%7Bnatural_number%7D/oj> .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:id_local "32008L0057"^^rdf:langString .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:type_document <http://publications.europa.eu/resource/authority/resource-type/DIR> .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:passed_by <http://publications.europa.eu/resource/authority/corporate-body/EP> .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:passed_by <http://publications.europa.eu/resource/authority/corporate-body/CONSIL> .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:is_about <http://eurovoc.europa.eu/3430> .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:is_about <http://eurovoc.europa.eu/3114> .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:is_about <http://eurovoc.europa.eu/3648> .
<http://data.europa.eu/eli/dir/2008/57/oj> eli:is_about <http://eu
@gatemezing
gatemezing / dcat-erakg.ttl
Created February 24, 2024 12:02
DCAT sample file for the RINF KG
@prefix dct: <http://purl.org/dc/terms/>.
@prefix org: <http://www.w3.org/ns/org#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix dcat: <http://www.w3.org/ns/dcat#>.
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix vann: <http://purl.org/vocab/vann/>.
@prefix era: <http://data.europa.eu/949/>.
@gatemezing
gatemezing / sample-htaccessForLoV.txt
Created July 28, 2023 15:04
A sample redirection when using Github to publish your ontology in w3id
Options -MultiViews
# Rewrite engine setup
RewriteEngine On
# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^(.+)$ https://OntoUML.github.io/ontouml-vocabulary/ontouml.ttl
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
<http://data.apco.cm/codes/rev1/nacam> a skos:ConceptScheme;
dcterms:issued "2022-11-26T00:00:00.000+01:00"^^xsd:dateTime;
skos:altLabel "NACAM rev1" ;
skos:prefLabel "Nomenclature d'activités camerounaise - NAEMA rév. 1"@fr;
skos:hasTopConcept <http://data.apco.cm/codes/rev1/nacam/section/J> ; # mettre tous les sections du document, voir page 9 du pdf
@gatemezing
gatemezing / sample_metadata_ontology.ttl
Created September 3, 2022 07:54
Sample metadata to make a FAIR-able ontology in Turtle
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ex: <https://example.org/ex#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix voaf: <http://purl.org/vocommons/voaf#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix cc: <http://creativecommons.org/ns#> .
## Ontology metadata here
Queries Category 1
==================
Q1:
# Q1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%
## Goal: Compute non-inferred symmetric concise bounded description of an entire FRBR hierarchy.
#DEFINE sql:describe-mode "SCBD"
prefix cdm: <http://publications.europa.eu/ontology/cdm#>
describe ?w ?e ?m where
# This file enumerates the Basic and Advanced config settings.
# The Basic settings are intended for users with basic knowledge about AnzoGraph
# or databases in general. The advanced settings are intended for system administrators
# or users with an advanced level of knowledge about AnzoGraph or databases.
#
# After changing this file, restart AnzoGraph to apply the configuration changes.
#
####################################################
# Basic Settings #