Skip to content

Instantly share code, notes, and snippets.

View gatemezing's full-sized avatar

Ghislain gatemezing

View GitHub Profile
@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 #
#datasets:
# - name: "DatasetName"
#optional, will just be set in the pre & post script hooks by using {{dataset.file}}
# file: "src/test/resources/dataset.txt"
connections:
- name: "neptune"
endpoint: "https://my-endpoint2/sparql"
- name: "neptune10b"
endpoint: "https://my-endpoint2/sparql"
# - name: "Blazegraph"
@gatemezing
gatemezing / POS-CAM.txt
Created October 6, 2021 09:10
Liste des POS par CAM
- NNP : Nom propres
- NN : Nom commun
- RB : Adverbe
- JJ : Adjectif
- DT : Déterminant
- CD : Numéro/ Cardinal
- UH : Interjection
- IN : Préposition / Pronoms relatifs
- VB : Verbe
- CC : Conjonction
Abbreviation Meaning
CC coordinating conjunction
CD cardinal digit
DT determiner
EX existential there
FW foreign word
IN preposition/subordinating conjunction
JJ This NLTK POS Tag is an adjective (large)
JJR adjective - comparative (larger)
JJS adjective - superlative (largest)