Skip to content
Snippets Groups Projects
Commit 4a891268 authored by David Rouquet's avatar David Rouquet
Browse files

init

parent 349b22bf
No related branches found
No related tags found
No related merge requests found
File added
File added
File added
This diff is collapsed.
# baseURI: http://tetras-libre.org/unsel/ressources-linguistiques/dictionnaire-cctp/schema-dictionnaire-unsel-shacl
# imports: http://datashapes.org/dash
# imports: https://tetras-libre.fr/ontologies/schema-dictionnaire-unsel
# prefix: dic-unsel-shacl
@prefix dash: <http://datashapes.org/dash#> .
@prefix dic-unsel: <https://tetras-libre.fr/ontologies/schema-dictionnaire-unsel#> .
@prefix dic-unsel-shacl: <http://tetras-libre.org/unsel/ressources-linguistiques/dictionnaire-cctp/schema-dictionnaire-unsel-shacl#> .
@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 sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://tetras-libre.org/unsel/ressources-linguistiques/dictionnaire-cctp/schema-dictionnaire-unsel-shacl>
rdf:type owl:Ontology ;
owl:imports <http://datashapes.org/dash> ;
owl:imports <https://tetras-libre.fr/ontologies/schema-dictionnaire-unsel> ;
owl:versionInfo "Created with TopBraid Composer" ;
sh:declare dic-unsel:PrefixDeclaration ;
.
dic-unsel-shacl:Noms-communs_test1
rdf:type dic-unsel:Noms-communs ;
dic-unsel:NBARG "0" ;
dic-unsel:SEM "PROC" ;
dic-unsel:SEMZPOS "x" ;
dic-unsel:UL-en-entree "test1" ;
.
dic-unsel-shacl:Noms-communs_test2
rdf:type dic-unsel:Noms-communs ;
dic-unsel:NBARG "1" ;
dic-unsel:SEM "PROC" ;
dic-unsel:SEMZPOS "x" ;
dic-unsel:UL-en-entree "test2" ;
.
dic-unsel:Noms-communs
rdf:type sh:NodeShape ;
sh:sparql [
sh:message " SEM='PROC et NBARG='1' pour {?UL} : il faut définir SEMZPOS et au choix (VAL1POS et SEM1POS) ou (CIRCPPOS)" ;
sh:prefixes <http://tetras-libre.org/unsel/ressources-linguistiques/dictionnaire-cctp/schema-dictionnaire-unsel-shacl> ;
sh:select """SELECT $this ?UL
WHERE {
$this dic-unsel:SEM \"PROC\" ; dic-unsel:NBARG '1' ; dic-unsel:UL-en-entree ?UL .
{NOT EXISTS {$this dic-unsel:SEMZPOS ?semzpos}}
UNION
{NOT EXISTS {$this dic-unsel:VAL1POS ?val1pos }}
UNION
{NOT EXISTS {$this dic-unsel:SEM1POS ?sem1pos }}
UNION
{$this dic-unsel:CIRCPPOS ?CIRCPPOS }
{NOT EXISTS {$this dic-unsel:SEMZPOS ?semzpos}}
UNION
{$this dic-unsel:VAL1POS ?val1pos }
UNION
{$this dic-unsel:SEM1POS ?SEM1pos }
UNION
{NOT EXISTS {$this dic-unsel:CIRCPPOS ?CIRCPPOS }}
}""" ;
] ;
sh:sparql [
sh:message "SEM='PROC' et NBARG='0' pour {?UL} : Il manque un argument SEMZPOS" ;
sh:prefixes <http://tetras-libre.org/unsel/ressources-linguistiques/dictionnaire-cctp/schema-dictionnaire-unsel-shacl> ;
sh:select """SELECT $this ?UL
WHERE {
$this dic-unsel:SEM \"PROC\" ; dic-unsel:NBARG '0' ; dic-unsel:UL-en-entree ?UL .
NOT EXISTS {$this dic-unsel:SEMZPOS ?semzpos}
}""" ;
] ;
.
dic-unsel:PrefixDeclaration
rdf:type sh:PrefixDeclaration ;
sh:namespace "https://tetras-libre.fr/ontologies/schema-dictionnaire-unsel#"^^xsd:anyURI ;
sh:prefix "dic-unsel" ;
.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment