Skip to content

Instantly share code, notes, and snippets.

@salgo60
Last active February 24, 2023 14:59
Show Gist options
  • Save salgo60/8105808191095303aff3e3e8b6d8b445 to your computer and use it in GitHub Desktop.
Save salgo60/8105808191095303aff3e3e8b6d8b445 to your computer and use it in GitHub Desktop.

Fråga från dataverkstaden om förslag på datamodell diariehandlingar**

första testet - se även dialog med chatGPT vad behövs för att förvalta en KG och Linked data

Intressant är kopplingen till Eurovoc

  • Eurovoc finns i Wikidata som P:P5437 Eurovoc id
    • eurovoc:3968 --> id eurovoc:3968 schooling / SV:skolgång -> WD sökning haswbstatement:"P5437=eurovoc:3968"
      • här är wikidata mycket svagt och det borde tas fram bra svenska vokabulärer se önskan att detta drivs av någon...
        • #51 - "Use keywords that are shared from known vocabularies"
        • #59 - "Motioner skall ha ämnesord ex. Eurovoc"
        • #73 - "Digital koppling mellan Riksdagens data/ myndigheternas jobb med instruktioner/ kommunernas beslut på Anslagstavlor"
        • #11 - "Metadata om kommunala beslut, möten skall kunna kopplas till vandringsleder"
@prefix schema: <http://schema.org/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix eurovoc: <http://eurovoc.europa.eu/schema#>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix ocd: <https://vocab.data.gov.uk/def/central-government-ontology#>.
@prefix eli: <http://data.europa.eu/eli/ontology#>.
@prefix wikidata: <http://www.wikidata.org/entity/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.

# Definition av klasser och egenskaper

schema:Municipality a rdfs:Class ;
    rdfs:label "Municipality"@en ;
    rdfs:comment "A Swedish municipality"@en .

schema:title a rdf:Property, schema:Text ;
    rdfs:label "Title"@en ;
    rdfs:comment "The title of the diary entry"@en .

schema:dateCreated a rdf:Property, schema:Date ;
    rdfs:label "Date created"@en ;
    rdfs:comment "The date the diary entry was created"@en .

schema:description a rdf:Property, schema:Text ;
    rdfs:label "Description"@en ;
    rdfs:comment "The description of the diary entry"@en .

schema:creator a rdf:Property, schema:Person ;
    rdfs:label "Creator"@en ;
    rdfs:comment "The person who created the diary entry"@en .

schema:mentions a rdf:Property, schema:Thing ;
    rdfs:label "Mentions"@en ;
    rdfs:comment "A thing mentioned in the diary entry"@en .

schema:sameAs a rdf:Property ;
    rdfs:label "Same As"@en ;
    rdfs:comment "The URL of an external resource that the municipality is the same as"@en .

skos:Concept a rdfs:Class ;
    rdfs:label "Concept"@en ;
    rdfs:comment "A concept in a controlled vocabulary"@en .

eurovoc:Topic a rdfs:Class ;
    rdfs:label "Topic"@en ;
    rdfs:comment "A topic from the Eurovoc controlled vocabulary"@en .

# Kopplingar mellan klasser och egenskaper

schema:Municipality schema:title schema:title ;
    schema:Municipality schema:dateCreated schema:dateCreated ;
    schema:Municipality schema:description schema:description ;
    schema:Municipality schema:creator schema:creator ;
    schema:Municipality schema:mentions schema:mentions ;
    schema:Municipality schema:sameAs schema:sameAs .

schema:mentions skos:exactMatch eurovoc:hasSubject .

schema:title rdfs:subPropertyOf dcterms:title ;
    schema:description rdfs:subPropertyOf dcterms:description ;
    schema:creator rdfs:subPropertyOf dcterms:creator ;
    schema:dateCreated rdfs:subPropertyOf dcterms:created ;
    schema:mentions rdfs:subPropertyOf dcterms:subject ;
    schema:sameAs rdfs:subPropertyOf owl:same
@salgo60
Copy link
Author

salgo60 commented Feb 24, 2023


@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 dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix schema: <http://schema.org/> .
@prefix eurovoc: <http://eurovoc.europa.eu/> .

<https://meetingsplus.danderyd.se/committees/kommunstyrelsen/kommunstyrelsen-2023-03-06>
        a schema:Event ;
        dc:title "Agenda for the Municipal Executive Board meeting on March 6, 2023" ;
        dcterms:description "Agenda for the Municipal Executive Board meeting on March 6, 2023" ;
        schema:startDate "2023-03-06T08:00:00+01:00"^^xsd:dateTime ;
        schema:endDate "2023-03-06T16:00:00+01:00"^^xsd:dateTime ;
        schema:location "Danderyd, Sweden" ;
        schema:organizer <http://data.danderyd.se/organization/kommunstyrelsen> ;
        schema:attendee <http://data.danderyd.se/person/anders-andersson>,
                <http://data.danderyd.se/person/anna-andersson>,
                <http://data.danderyd.se/person/emma-ek>,
                <http://data.danderyd.se/person/peter-pettersson> ;
        schema:about eurovoc:302689 ,
                eurovoc:122 ,
                eurovoc:5587 ,
                eurovoc:8212 ,
                eurovoc:3467 ,
                eurovoc:1477 ,
                eurovoc:3772 ,
                eurovoc:3477 ,
                eurovoc:3337 .

<https://meetingsplus.danderyd.se/committees/kommunstyrelsen/kommunstyrelsen-2023-03-06>
        rdfs:label "دستور جلسه هیات اجرایی شهرداری برای جلسه ۶ مارس ۲۰۲۳" @fa .

<https://meetingsplus.danderyd.se/committees/kommunstyrelsen/kommunstyrelsen-2023-03-06>
        rdfs:label "Agenda for the Municipal Executive Board meeting on March 6, 2023" @en .

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment