Copyright © 2024 MetaSolutions AB
Nedan ser vi ett nästan komplett exempel uttryckt i RDF formatet Turtle.
@prefix adms: <http://www.w3.org/ns/adms#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://w3.org/ex#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix schema: <http://schema.org/> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
# Instances of OrganizationalUnit (Public Organization)
<http://example.com/publicservices> a org:OrganizationalUnit ;
skos:prefLabel "Department of Public Services"@en ;
foaf:homepage <http://example.com/publicservices> ;
schema:telephone "+1234567890" ;
schema:email "publicservices@example.com" ;
org:classification ex:Concept1 ;
org:unitOf <http://example.com/publicorganization> .
# Instances of Organization (Public Organization)
<http://example.com/publicorganization> a org:Organization ;
skos:prefLabel "Example Public Organization"@en ;
foaf:homepage <http://example.com> .
# Instances of Concept
ex:Concept1 a skos:Concept ;
skos:prefLabel "Public Department"@en .
# Instances of DigitalDocument
<http://example.com/document/1> a schema:DigitalDocument ;
dcterms:identifier "DOC-001" ;
dcterms:title "Public Report on Community Services"@en ;
dcterms:description "A comprehensive report on community services."@en ;
dcterms:dateAccepted "2024-06-14T10:00:00Z"^^xsd:dateTime ;
dcterms:dateSubmitted "2024-06-01T10:00:00Z"^^xsd:dateTime ;
dcterms:subject <http://example.com/subject/CommunityServices> ;
dcterms:type <http://example.com/Submitted> ;
dcterms:source "Anonymous"@en ;
prov:wasGeneratedBy <http://example.com/activity/1> ;
dcterms:publisher <http://example.com/publicservices> .
# Instances of Activity
<http://example.com/activity/1> a prov:Activity ;
dcterms:type <http://example.com/CommitteeMeeting> ;
prov:startedAtTime "2024-05-01T09:00:00Z"^^xsd:dateTime ;
prov:endedAtTime "2024-06-01T17:00:00Z"^^xsd:dateTime ;
prov:wasAssociatedWith <http://example.com/publicservices> ;
prov:generated <http://example.com/document/1> .
# Additional instances to demonstrate all properties
<http://example.com/document/2> a schema:DigitalDocument ;
dcterms:identifier "DOC-002" ;
dcterms:title "Public Report on Infrastructure"@en ;
dcterms:description "An in-depth report on public infrastructure."@en ;
dcterms:dateAccepted "2024-06-15T10:00:00Z"^^xsd:dateTime ;
dcterms:dateSubmitted "2024-06-05T10:00:00Z"^^xsd:dateTime ;
dcterms:subject <http://example.com/subject/Infrastructure> ;
dcterms:type <http://example.com/Outbound> ;
dcterms:source "Anonymous"@en ;
prov:wasGeneratedBy <http://example.com/activity/2> ;
dcterms:publisher <http://example.com/publicservices> .
<http://example.com/activity/2> a prov:Activity ;
dcterms:type <http://example.com/PolicyReview> ;
prov:startedAtTime "2024-05-05T09:00:00Z"^^xsd:dateTime ;
prov:endedAtTime "2024-06-05T17:00:00Z"^^xsd:dateTime ;
prov:wasAssociatedWith <http://example.com/publicservices> ;
prov:generated <http://example.com/document/2> .
<http://example.com/publichealth> a org:OrganizationalUnit ;
skos:prefLabel "Department of Public Health"@en ;
foaf:homepage <http://example.com/publichealth> ;
schema:telephone "+0987654321" ;
schema:email "publichealth@example.com" ;
org:classification ex:Concept1 ;
org:unitOf <http://example.com/publicorganization> .
<http://example.com/document/3> a schema:DigitalDocument ;
dcterms:identifier "DOC-003" ;
dcterms:title "Public Health Guidelines"@en ;
dcterms:description "Guidelines for public health and safety."@en ;
dcterms:dateAccepted "2024-06-16T10:00:00Z"^^xsd:dateTime ;
dcterms:dateSubmitted "2024-06-06T10:00:00Z"^^xsd:dateTime ;
dcterms:subject <http://example.com/subject/PublicHealth> ;
dcterms:type <http://example.com/Established> ;
dcterms:source "Anonymous"@en ;
prov:wasGeneratedBy <http://example.com/activity/3> ;
dcterms:publisher <http://example.com/publichealth> .
<http://example.com/activity/3> a prov:Activity ;
dcterms:type <http://example.com/HealthAssessment> ;
prov:startedAtTime "2024-05-06T09:00:00Z"^^xsd:dateTime ;
prov:endedAtTime "2024-06-06T17:00:00Z"^^xsd:dateTime ;
prov:wasAssociatedWith <http://example.com/publichealth> ;
prov:generated <http://example.com/document/3> .