Difference between revisions of "RDF/OWL"

From Archivematica
Jump to navigation Jump to search
Line 7: Line 7:
 
@prefix doap: "http://usefulinc.com/ns/doap#" .
 
@prefix doap: "http://usefulinc.com/ns/doap#" .
 
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
 
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix evtype: <http://id.loc.gov/vocabulary/preservation/eventType/> .
+
@prefix evRelAgRole: <http://id.loc.gov/vocabulary/preservation/linkingAgentRoleEvent> .
 +
@prefix evtype: <http://id.loc.gov/vocabulary/preservation/eventType> .
 
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
 
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
 
@prefix owl: <http://www.w3.org/2002/07/owl#> .
 
@prefix owl: <http://www.w3.org/2002/07/owl#> .
Line 14: Line 15:
 
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
 
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
 
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix relsubtype: <http://id.loc.gov/vocabulary/preservation/relationshipSubType/> .
+
@prefix relsubtype: <http://id.loc.gov/vocabulary/preservation/relationshipSubType> .
  
 
<file1> a premis:File
 
<file1> a premis:File
Line 35: Line 36:
 
   owl:sameAs <http://www.nationalarchives.gov.uk/pronom/fmt/43> .
 
   owl:sameAs <http://www.nationalarchives.gov.uk/pronom/fmt/43> .
  
<file1ing> a premis:Event, evtype:ing ;
+
<info:nri/ff8a8142-00a8-41d4-a8ff-892d123d45ff> rdf:type, evType:ing ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
+
   dc:date "2017-01-21T01:46:13" ;
   premis:eventDateTime "2017-01-21T01:46:13" ;
+
   evRelAgRole:imp <NRI>
   prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .
+
  evRelAgRole:aut <pk1>
 +
  evRelAgRole: <exe>
  
 
<file1mes> a premis:Event, evtype:mes ;
 
<file1mes> a premis:Event, evtype:mes ;

Revision as of 13:24, 15 March 2017

Main Page > Development > Development documentation > Metadata elements > RDF/OWL

This example is based on an OWL ontology for PREMIS being drafted by a working group associated with the PREMIS Editorial Committee. The draft ontology will be made publicly available in February 2017.

@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix doap: "http://usefulinc.com/ns/doap#" .
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix evRelAgRole: <http://id.loc.gov/vocabulary/preservation/linkingAgentRoleEvent> .
@prefix evtype: <http://id.loc.gov/vocabulary/preservation/eventType> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix premis: <http://www.loc.gov/premis/rdf/v2#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix relsubtype: <http://id.loc.gov/vocabulary/preservation/relationshipSubType> .

<file1> a premis:File
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  dc:description "original" ;
  premis:compositionLevel "0" ;
  ebucore:fileSize "158131" ;
  premis:originalName "%transferDirectory%objects/evelyn's second photo.jpg" ;
  premis:hasFixity <file1fixity> ;
  premis:hasFormat <jpgformat> ;
  relsubtype:iso <file2> ;
  premis:hasEvent <file1ing>, <file1mes>, <file1vir>, <file1fnm>, <file1fid>, <file1val>, <file1nor>, <file1fix> .

<file1fixity> a premis:Fixity, premis:SHA256Fixity ;
  rdf:value "d2bed92b73c7090bb30a0b30016882e7069c437488e1513e9deaacbe29d38d92" .
	
<jpgformat> a dcterms:FileFormat ;
  rdfs:label "JPEG File Interchange Format" ;
  premis:hasVersion "1.01" ;
  owl:sameAs <http://www.nationalarchives.gov.uk/pronom/fmt/43> .

<info:nri/ff8a8142-00a8-41d4-a8ff-892d123d45ff> rdf:type, evType:ing ;
  dc:date "2017-01-21T01:46:13" ;
  evRelAgRole:imp <NRI>
  evRelAgRole:aut <pk1>
  evRelAgRole: <exe>

<file1mes> a premis:Event, evtype:mes ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDateTime "2017-01-21T01:46:16" ;
  premis:hasOutcome "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDetail "program="python"; module="hashlib.sha256()"" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file1vir> a premis:Event, evtype:vir ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDateTime "2017-01-21T01:46:23" ;
  premis:hasOutcome "Pass" ;
  premis:eventDetail "program="Clam AV"; version="ClamAV 0.99.2"; virusDefinitions="22920/Sat Jan 21 00:16:22 2017 "" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file1fnm> a premis:Event, evtype:fnm ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDateTime "2017-01-21T01:46:29" ;
  premis:hasOutcome "Original name="%transferDirectory%objects/evelyn's photo.jpg"; cleaned up name="%transferDirectory%objects/evelyn_s_photo.jpg"" ;
  premis:eventDetail "prohibited characters removed:program="sanitizeNames"; version="1.10.d204c68e72645b2b4228520680ca211f7bc20b3b"" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file1fid> a premis:Event, evtype:fid ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDateTime "2017-01-21T01:52:21" ;
  premis:hasOutcome "Positive" ;
  premis:eventDetail "program="Fido"; version="1"" ;
  premis:eventOutcomeDetailNote <http://www.nationalarchives.gov.uk/pronom/fmt/43> ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file1val> a premis:Event, evtype:val ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDateTime "2017-01-21T01:52:30" ;
  premis:hasOutcome "pass" ;
  premis:eventDetail "program="JHOVE"; version="1.6"" ;
  premis:eventOutcomeDetailNote "format="JPEG"; version="1.02"; result="Well-Formed and valid"" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file1nor> a premis:Event, evtype:nor ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDateTime "2017-01-21T01:54:26" ;
  premis:eventDetail "ArchivematicaFPRCommandID="a34ddc9b-c922-4bb6-8037-bbe713332175"; program="convert"; version="Version: ImageMagick 6.7.7-10 2016-11-29 Q16 http://www.imagemagick.org"" ;
  premis:eventOutcomeDetailNote "%SIPDirectory%objects/evelyn_s_photo-4c23296c-1382-4b1e-ab96-3c128c533fc0.tif" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file1fix> a premis:Event, evtype:fix ;
  dc:identifier "ff8a8142-00a8-41d4-a8ff-892d123d45ff" ;
  premis:eventDateTime "2017-01-21T01:59:46" ;
  premis:hasOutcome "pass" ;
  premis:eventDetail "program="python"; module="hashlib.sha256()"" ;
  premis:eventOutcomeDetailNote "d2bed92b73c7090bb30a0b30016882e7069c437488e1513e9deaacbe29d38d92 verified" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<NRI> a prov:Agent, prov:Organization ;
  foaf:name “Not a Real Institution” .
 
<pk1> prov:Agent, prov:Person;
  rdfs:label "McLellan, Evelyn" .

<Archivematica> a prov:Agent, prov:SoftwareApplication ;
  doap:name "Archivematica" ;
  premis:hasVersion "1.6" .

<file2> a premis:File
  dc:identifier "3d418ac1-43d9-4a5e-82f0-9ff45fbaa509" ;
  dc:description "preservation" ;
  premis:compositionLevel "0" ;
  ebucore:fileSize "1446768" ;
  premis:hasFixity <file2fixity> ;
  relsubtype:hss <file1> ;
  premis:hasEvent <file2cre>, <file2mes>, <file2fix> .

<file2fixity> a premis:Fixity, premis:SHA256Fixity ;
  rdf:value "1b3cd0d919a3d80aa042ff46d8c4f209c054f83ff4faa6a155e66cc0ba612910" .

<file2cre> a premis:Event, evtype:cre ;
  dc:identifier "4c23296c-1382-4b1e-ab96-3c128c533fc0" ;
  premis:eventDateTime "2017-01-21T01:54:26" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file2mes> a premis:Event, evtype:mes ;
  dc:identifier "555e3339-3410-4c73-a7c5-30d3bc7a6afc" ;
  premis:eventDateTime "2017-01-21T01:54:26" ;
  premis:hasOutcome "1b3cd0d919a3d80aa042ff46d8c4f209c054f83ff4faa6a155e66cc0ba612910" ;
  premis:eventDetail "program="python"; module="hashlib.sha256()"" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .

<file2fix> a premis:Event, evtype:fix ;
  dc:identifier "cac3adfa-7b27-4dbb-9874-c3af255efbdf" ;
  premis:eventDateTime "2017-01-21T01:59:43" ;
  premis:hasOutcome "1b3cd0d919a3d80aa042ff46d8c4f209c054f83ff4faa6a155e66cc0ba612910 verified" ;
  premis:eventDetail "program="python"; module="hashlib.sha256()"" ;
  prov:wasAttributedTo <NRI>, <pk1>, <Archivematica> .