Skip to content

Instantly share code, notes, and snippets.

@jlhardes
jlhardes / multiFileHydraWorks.xml
Last active August 29, 2015 14:10
Hydra::Works implementation attempt for multiple files (one for each track) on an audio object
<?xml version="1.0" encoding="UTF-8"?>
<!-- Attempt to describe track list at http://server1.variations2.indiana.edu/variations/cgi-bin/access.pl?id=BFJ6801 assuming that there mulitple files for each track of this recording: http://purl.dlib.indiana.edu/iudl/media/avalon:3333. -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:avalon="http://purl.dlib.indiana.edu#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:ore="http://www.openarchives.org/ore/terms/"
xmlns:hydra="http://projecthydra.org/ns/works#" xmlns:iana="http://www.iana.org/assignments/relation/">
<!-- avalon: doesn't really exist as it's being used here - it's some type of descriptive metadata that contains work titles and start and end times; may be MODS but may be some other type of metadata -->
<!-- Not sure rdf:Description is needed here if hydra: is managing same level of description and relationship. -->
<!-- <rdf:Description about="http://purl.dlib.indiana.edu/iudl/media/avalon:3333">
@jlhardes
jlhardes / singleFileHydraWorks.xml
Last active August 29, 2015 14:10
Hydra::Works implementation attempt for single file on an audio object.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Attempt to describe track list at http://server1.variations2.indiana.edu/variations/cgi-bin/access.pl?id=BFJ6801 assuming that there is one file in Avalon that contains all of this recording: http://purl.dlib.indiana.edu/iudl/media/avalon:3333. -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:avalon="http://purl.dlib.indiana.edu#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:ore="http://www.openarchives.org/ore/terms/"
xmlns:hydra="http://projecthydra.org/ns/works#"
xmlns:iana="http://www.iana.org/assignments/relation/">
<!-- avalon: doesn't really exist as it's being used here - it's some type of descriptive metadata that contains work titles and start and end times; may be MODS but may be some other type of metadata -->
<hydra:GenericWork rdf:about="http://purl.dlib.indiana.edu/iudl/media/avalon:3333">
<avalon:WorkTitle>Copland, Music for Piano</avalon:WorkTitle>
@jlhardes
jlhardes / singleFileHydraWorks3.xml
Created December 8, 2014 21:49
Expanding on single file Hydra::Works example and validating RDF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Attempt to describe track list at http://server1.variations2.indiana.edu/variations/cgi-bin/access.pl?id=BFJ6801 assuming that there is one file in Avalon that contains all of this recording: http://purl.dlib.indiana.edu/iudl/media/avalon:3333. -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:avalon="http://purl.dlib.indiana.edu#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:ore="http://www.openarchives.org/ore/terms/"
xmlns:hydra="http://projecthydra.org/ns/works#"
xmlns:iana="http://www.iana.org/assignments/relation/">
<hydra:GenericWork rdf:about="http://purl.dlib.indiana.edu/iudl/media/avalon:3333">
<avalon:WorkTitle>Copland, Music for Piano</avalon:WorkTitle>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Attempt to describe track list at http://server1.variations2.indiana.edu/variations/cgi-bin/access.pl?id=BFJ6801 assuming that there is one file in Avalon that contains all of this recording: http://purl.dlib.indiana.edu/iudl/media/avalon:3333. -->
<!-- https://wiki.duraspace.org/display/ld4l/Use+Case+1.1+-+Triples+Examples#UseCase1.1-TriplesExamples-Example2-ore:AVirtualCollectionasanorderedcollectionofitemsusingOREOntology'sAggregationwithmultipleordereditems -->
<!-- https://wiki.duraspace.org/display/hydra/Hydra%3A%3AWorks+Shared+Modeling -->
<!-- https://docs.google.com/document/d/1o-Iq1oKN_W5NXXDQC81pxkhibOz_AhZlY7IShxPTR5M/edit# -->
<!-- https://github.com/projecthydra-labs/hydra-works/issues/27 -->
<!-- https://wiki.duraspace.org/display/hydra/Hydra+Developers+-+Making+Progress+Fall+2014 -->
<!-- http://www.openarchives.org/ore/1.0/rdfxml -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<?xml version="1.0" encoding="UTF-8"?>
<!-- Attempt to describe track list at http://server1.variations2.indiana.edu/variations/cgi-bin/access.pl?id=BFJ6801 assuming that there is one file in Avalon that contains all of this recording: http://purl.dlib.indiana.edu/iudl/media/avalon:3333. -->
<!-- https://wiki.duraspace.org/display/ld4l/Use+Case+1.1+-+Triples+Examples#UseCase1.1-TriplesExamples-Example2-ore:AVirtualCollectionasanorderedcollectionofitemsusingOREOntology'sAggregationwithmultipleordereditems -->
<!-- https://wiki.duraspace.org/display/hydra/Hydra%3A%3AWorks+Shared+Modeling -->
<!-- https://docs.google.com/document/d/1o-Iq1oKN_W5NXXDQC81pxkhibOz_AhZlY7IShxPTR5M/edit# -->
<!-- https://github.com/projecthydra-labs/hydra-works/issues/27 -->
<!-- https://wiki.duraspace.org/display/hydra/Hydra+Developers+-+Making+Progress+Fall+2014 -->
<!-- http://www.openarchives.org/ore/1.0/rdfxml -->
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
@prefix dcterms: <http://purl.org/dc/terms/> .
@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 xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://hydra.vocab.manager/predicate/arkivoChecksum> a rdf:Property,
rdf:predicate ;
rdfs:label "Arkivo Checksum"@en ;
{
"@context": {
"dcterms": "http://purl.org/dc/terms/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@id": "http://hydra.vocab.manager/predicate/arkivoChecksum",
"@type": [
#ss:arkivoChecksum example
# Automated information
<http://hydra.vocab.manager/predicate/arkivoChecksum> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> .
<http://hydra.vocab.manager/predicate/arkivoChecksum> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<http://hydra.vocab.manager/predicate/arkivoChecksum> <http://purl.org/dc/terms/issued> "2016-11-11"^^<http://www.w3.org/2001/XMLSchema#date> .
# Required information
<http://hydra.vocab.manager/predicate/arkivoChecksum> <http://www.w3.org/2000/01/rdf-schema#label> "Arkivo Checksum"@en .
<http://hydra.vocab.manager/predicate/arkivoChecksum> <http://www.w3.org/2000/01/rdf-schema#comment> "An MD5 checksum for a bitstream uploaded by Zotero's subscription service, Arkivo."@en .
<http://hydra.vocab.manager/predicate/arkivoChecksum> <http://www.w3.org/2004/02/skos/core#example> "A repository object has an MD5 checksum generated by Arkivo that should
@prefix dcterms: <http://purl.org/dc/terms/> .
@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 xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://hydra.vocab.manager/predicate/importURL> a rdf:Property,
rdf:predicate ;
rdfs:label "Import URL"@en ;
{
"@context": {
"dcterms": "http://purl.org/dc/terms/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@id": "http://hydra.vocab.manager/predicate/importURL",
"@type": [