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#"
#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
#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
#ss:importURL example
# Automated information
<http://hydra.vocab.manager/predicate/importURL> <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/importURL> <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/importURL> <http://purl.org/dc/terms/issued> "2016-11-11"^^<http://www.w3.org/2001/XMLSchema#date> .
# Required information
<http://hydra.vocab.manager/predicate/importURL> <http://www.w3.org/2000/01/rdf-schema#label> "Import URL"@en .
<http://hydra.vocab.manager/predicate/importURL> <http://www.w3.org/2000/01/rdf-schema#comment> "The URL from which content hosted in a cloud storage service is imported."@en .
<http://hydra.vocab.manager/predicate/importURL> <http://www.w3.org/2004/02/skos/core#example> "A repository object was imported from Google Drive cloud storage.<br/>&lt;http://example.org/object&gt; &lt;http://hydra
<!DOCTYPE html>
<html lang="en">
<head>
<title> Predicates
- Hydra Vocab Manager</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!DOCTYPE html>
<html lang="en">
<head>
<title> importURL - Hydra Vocab Manager</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link data-turbolinks-track="true" href="http://opaquenamespace.org/assets/application-6eab45fa7a7016e7b32409317bf2b513.css" media="all" rel="stylesheet" />