# Linked Legal Knowledge Graph Schema Description, V0.1

@prefix eliontology: <http://data.europa.eu/eli/ontology#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix : <http://data.wu.ac.at/ns/llkg/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix iso: <http://id.loc.gov/vocabulary/iso639-2/> .
@prefix madsrdf: <http://www.loc.gov/mads/rdf/v1#> .
@prefix eurovoc: <http://eurovoc.europa.eu/schema#> .
@prefix dbo: <http://dbpedia.org/ontology/>.

:ECLI a rdfs:Class ; 
        rdfs:subClassOf eliontology:LegalResource ; 
        rdfs:comment "the ELI Ontology does not define separate classes for ELIs and ECLIs" .

:ELI a rdfs:Class ; 
       rdfs:subClassOf eliontology:LegalResource ; 
       rdfs:comment "the ELI Ontology does not define separate classes for ELIs and ECLIs" .

#Some dedicated datatypes (subtypes of xsd:String for our base schema: 

:ECLIabstract rdfs:subClassOf  xsd:String .

:ECLItitle rdfs:subClassOf  xsd:String .

:PublicationDate rdfs:subClassOf  xsd:Date ; 
                 rdfs:comment "Date when a legal document was officially published". 

:ELIvalidityDate rdfs:subClassOf  xsd:Date  ; 
                 rdfs:comment "Date when an ELI (law or regulation) came into effect".

:ECLIdecisionDate rdfs:subClassOf  xsd:Date ; 
                  rdfs:comment "Date when an ECLI court decision was made" . 

:Court a rdfs:Class ; rdfs:subClassOf eliontology:Agent ;
                 rdfs:comment "A court which passed a decision (ECLI)".

:Legislator a rdfs:Class ; rdfs:subClassOf eliontology:Agent ;
                 rdfs:comment "A legislator which passed a law/regulation (ELI)".


# Languages of the EU:

madsrdf:Language a rdfs:Class; 
                 rdfs:comment "for languages and ISO codes of the languages we use the MADS/RDF (Metadata Authority Description Schema in RDF) scheme for the moment, as we did not find an authoritative class or namespace by the EU." .

# Some example languages from madsrdf:

iso:eng a madsrdf:Language .
iso:deu a madsrdf:Language .
iso:spa a madsrdf:Language .
iso:fra a madsrdf:Language .

# Types of Documents:
eliontology:ResourceType a rdfs:Class ; 
      rdfs:comment "There is a designated existing Class for legal document (sub-)types of ELI /ECLI documents as described in http://publications.europa.eu/mdr/authority/resource-type in the ELI Ontology, but no defined instances".

# Some example instances for our purposes, this list is extensible:
:JudicalDecision a eliontology:ResourceType ; rdfs:label "Gerichtsentscheidung"@de , "Court Decision"@en .
:Directive a eliontology:ResourceType ; rdfs:label "Directive"@en, "Direktive"@de .
:Regulation a eliontology:ResourceType ;  rdfs:label "Regulation"@en, "Grundverordnung"@de .  
:Law a :Type ; rdfs:label "Gesetz"@de , "law"@en . 

:hasTitle a rdf:Property;
     rdfs:subPropertyOf dcterms:title; rdfs:domain :ECLI; rdfs:range :ECLItitle.

:hasAbstract a rdf:Property;
     rdfs:subPropertyOf dcterms:abstract; rdfs:domain :ECLI; rdfs:range :ECLIabstract.

:language a rdf:Property;
     rdfs:subPropertyOf dcterms:language; rdfs:domain [a owl:Class; owl:unionOf :ECLI, :ELI ]; rdfs:range madsrdf:Language.

:publicationDate a rdf:Property;
     rdfs:subPropertyOf dcterms:issued; rdfs:domain [ a owl:Class; owl:unionOf :ECLI, :ELI]; rdfs:range :PublicationDate.

:hasType a rdf:Property;
         rdfs:subPropertyOf dcterms:type;
         rdfs:subPropertyOf eliontology:type_document;
         rdfs:domain [ a owl:Class; owl:unionOf :ECLI, :ELI]; rdfs:range :Type .

:ELIcreator a rdf:Property;
            rdfs:subPropertyOf dcterms:creator;
            rdfs:subPropertyOf eliontology:passed_by ;
            rdfs:domain :ELI; rdfs:domain :Legislator .

:ECLIcreator a rdf:Property;
             rdfs:subPropertyOf dcterms:creator;
             rdfs:domain :ELI; rdfs:domain :Court .

# The publisher of laws regulations could be a different organization than the legislator/government:
:ELIpublisher  a rdf:Property;
               rdfs:subPropertyOf dcterms:publisher;
               rdfs:domain :ECLI ; rdfs:range :Agent .

:ECLIpublisher a rdf:Property;
               rdfs:subPropertyOf dcterms:publisher;
               rdfs:domain :ECLI ; rdfs:range :Court .

:subject a rdf:Property;
               rdfs:subPropertyOf dcterms:subject;
               rdfs:domain [ a owl:Class; owl:unionOf :ECLI, :ELI]; 
               rdfs:range  [ a owl:Class; owl:unionOf xsd:String, eurovoc:ThesaurusTerm ] .

:description a rdf:Property;
               rdfs:subPropertyOf dcterms:description;
               rdfs:domain [ a owl:Class; owl:unionOf :ECLI, :ELI]; 
               rdfs:range  [ a owl:Class; owl:unionOf xsd:String, eurovoc:ThesaurusTerm ] .

:coverage a rdf:Property ;
               rdfs:subPropertyOf dcterms:coverage;
               rdfs:domain [ a owl:Class; owl:unionOf :ECLI, :ELI]; 
               rdfs:range dbo:Country .

:isVersionOf a rdf:Property ;
               rdfs:subPropertyOf dcterms:isVersionOf;
               rdfs:domain :ECLI ; rdfs:range :ECLI .

:references a rdf:Property ;
               rdfs:subPropertyOf dcterms:references;
               rdfs:domain :ECLI ; rdfs:range :ECLI .

:isReplacedBy a rdf:Property ;
               rdfs:subPropertyOf dcterms:isReplacedBy;
               rdfs:domain :ECLI ; rdfs:range :ECLI .
