Skip to content

Commit b93dec5

Browse files
Sync files from HydroShare
1 parent 684d9b9 commit b93dec5

33 files changed

Lines changed: 2743 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BagIt-Version: 0.96
2+
Tag-File-Character-Encoding: UTF-8
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# AnothereExample notebook with metadata section"
8+
]
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": null,
13+
"metadata": {},
14+
"outputs": [],
15+
"source": [
16+
"# Example metadata that can be parsed for display in the SWOTVIZ app\n",
17+
"META_TITLE = \"Another Example metadata tile\"\n",
18+
"META_SUBTITLE = \"Subtitle extracted from the notebook\"\n",
19+
"META_DESCRIPTION = \"This will get synced to https://www.hydroshare.org/resource/ff48614339034212bb7b31cb719c0aa0/data/contents/example_metadata_parsing2.ipynb\""
20+
]
21+
}
22+
],
23+
"metadata": {
24+
"kernelspec": {
25+
"display_name": "venv",
26+
"language": "python",
27+
"name": "python3"
28+
},
29+
"language_info": {
30+
"codemirror_mode": {
31+
"name": "ipython",
32+
"version": 3
33+
},
34+
"file_extension": ".py",
35+
"mimetype": "text/x-python",
36+
"name": "python",
37+
"nbconvert_exporter": "python",
38+
"pygments_lexer": "ipython3",
39+
"version": "3.12.3"
40+
}
41+
},
42+
"nbformat": 4,
43+
"nbformat_minor": 4
44+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<rdf:RDF
3+
xmlns:citoterms="http://purl.org/spar/cito/"
4+
xmlns:dc="http://purl.org/dc/elements/1.1/"
5+
xmlns:dcterms="http://purl.org/dc/terms/"
6+
xmlns:foaf="http://xmlns.com/foaf/0.1/"
7+
xmlns:ore="http://www.openarchives.org/ore/terms/"
8+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
9+
xmlns:rdfs1="http://www.w3.org/2001/01/rdf-schema#"
10+
>
11+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation">
12+
<dcterms:type rdf:resource="http://www.hydroshare.org/terms/CompositeResource"/>
13+
<citoterms:isDocumentedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml</citoterms:isDocumentedBy>
14+
<ore:aggregates rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml"/>
15+
<ore:isDescribedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml</ore:isDescribedBy>
16+
<dc:title>Another Single Notebook -- SWOTVIZ Example</dc:title>
17+
<rdf:type rdf:resource="http://www.openarchives.org/ore/terms/Aggregation"/>
18+
<ore:aggregates rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/example_2.ipynb"/>
19+
</rdf:Description>
20+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml">
21+
<dc:creator rdf:resource="http://foresite-toolkit.googlecode.com/#pythonAgent"/>
22+
<dcterms:modified>2025-04-15T14:26:28Z</dcterms:modified>
23+
<ore:describes rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation"/>
24+
<rdf:type rdf:resource="http://www.openarchives.org/ore/terms/ResourceMap"/>
25+
<dc:identifier>1cc0fdda275340ff9d6682627d09a3b9</dc:identifier>
26+
<dc:format>application/rdf+xml</dc:format>
27+
<dcterms:created>2025-04-15T14:26:28Z</dcterms:created>
28+
</rdf:Description>
29+
<rdf:Description rdf:about="http://foresite-toolkit.googlecode.com/#pythonAgent">
30+
<foaf:mbox>foresite@googlegroups.com</foaf:mbox>
31+
<foaf:name>Foresite Toolkit (Python)</foaf:name>
32+
</rdf:Description>
33+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/example_2.ipynb">
34+
<dc:format>application/ipynb</dc:format>
35+
<ore:isAggregatedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
36+
</rdf:Description>
37+
<rdf:Description rdf:about="http://www.openarchives.org/ore/terms/Aggregation">
38+
<rdfs1:label>Aggregation</rdfs1:label>
39+
<rdfs1:isDefinedBy>http://www.openarchives.org/ore/terms/</rdfs1:isDefinedBy>
40+
</rdf:Description>
41+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml">
42+
<ore:isAggregatedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
43+
<citoterms:documents>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</citoterms:documents>
44+
<dc:format>application/rdf+xml</dc:format>
45+
<dc:title>Dublin Core science metadata document describing the HydroShare resource</dc:title>
46+
</rdf:Description>
47+
<rdf:Description rdf:about="http://www.openarchives.org/ore/terms/ResourceMap">
48+
<rdfs1:isDefinedBy>http://www.openarchives.org/ore/terms/</rdfs1:isDefinedBy>
49+
<rdfs1:label>ResourceMap</rdfs1:label>
50+
</rdf:Description>
51+
<rdf:Description rdf:about="http://www.hydroshare.org/terms/CompositeResource">
52+
<rdfs1:label>Composite Resource</rdfs1:label>
53+
<rdfs1:isDefinedBy>http://www.hydroshare.org/terms</rdfs1:isDefinedBy>
54+
</rdf:Description>
55+
</rdf:RDF>
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<rdf:RDF
3+
xmlns:dcterms="http://purl.org/dc/terms/"
4+
xmlns:hsterms="https://www.hydroshare.org/terms/"
5+
xmlns:dc="http://purl.org/dc/elements/1.1/"
6+
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
7+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8+
>
9+
<rdf:Description rdf:about="http://www.hydroshare.org/terms/CompositeResource">
10+
<rdfs:label>Composite Resource</rdfs:label>
11+
<rdfs:isDefinedBy rdf:resource="https://www.hydroshare.org/terms/"/>
12+
</rdf:Description>
13+
<hsterms:CompositeResource rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9">
14+
<dc:relation>
15+
<rdf:Description>
16+
<dcterms:source>Cowan, D. (2025). SWOTVIZ Example Notebooks, HydroShare, http://www.hydroshare.org/resource/ff48614339034212bb7b31cb719c0aa0, accessed on: 04/02/2025</dcterms:source>
17+
</rdf:Description>
18+
</dc:relation>
19+
<dc:identifier>
20+
<rdf:Description>
21+
<hsterms:hydroShareIdentifier rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9"/>
22+
</rdf:Description>
23+
</dc:identifier>
24+
<dc:date>
25+
<dcterms:modified>
26+
<rdf:value>2025-04-14T15:57:56.285099+00:00</rdf:value>
27+
</dcterms:modified>
28+
</dc:date>
29+
<dc:subject>k2</dc:subject>
30+
<dc:title>Another Single Notebook -- SWOTVIZ Example</dc:title>
31+
<dc:creator>
32+
<rdf:Description>
33+
<hsterms:organization>CUAHSI</hsterms:organization>
34+
<hsterms:phone>+1 (406) 599-9009</hsterms:phone>
35+
<hsterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">12389</hsterms:description>
36+
<hsterms:address>VT, US</hsterms:address>
37+
<hsterms:homepage></hsterms:homepage>
38+
<hsterms:creatorOrder rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</hsterms:creatorOrder>
39+
<hsterms:hydroshare_user_id rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">12389</hsterms:hydroshare_user_id>
40+
<hsterms:name>Cowan, Devin</hsterms:name>
41+
<hsterms:ORCID rdf:resource="https://orcid.org/0000-0003-4621-0559"/>
42+
<hsterms:email>dcowan@cuahsi.org</hsterms:email>
43+
</rdf:Description>
44+
</dc:creator>
45+
<dc:subject>k3</dc:subject>
46+
<dc:type rdf:resource="http://www.hydroshare.org/terms/CompositeResource"/>
47+
<dc:relation>
48+
<rdf:Description>
49+
<dcterms:isPartOf>Cowan, D. (2025). SwotViz Example Notebook Collection, HydroShare, http://www.hydroshare.org/resource/ac6cc75dcb0146cf9cc17a974f4bb08b</dcterms:isPartOf>
50+
</rdf:Description>
51+
</dc:relation>
52+
<dc:subject>keyword1</dc:subject>
53+
<dc:description>
54+
<rdf:Description>
55+
<dcterms:abstract>Here is the abstract!</dcterms:abstract>
56+
</rdf:Description>
57+
</dc:description>
58+
<dc:rights>
59+
<rdf:Description>
60+
<hsterms:URL rdf:resource="http://creativecommons.org/licenses/by/4.0/"/>
61+
<hsterms:rightsStatement>This resource is shared under the Creative Commons Attribution CC BY.</hsterms:rightsStatement>
62+
</rdf:Description>
63+
</dc:rights>
64+
<dc:language>eng</dc:language>
65+
<dcterms:bibliographicCitation>Cowan, D. (2025). Another Single Notebook -- SWOTVIZ Example, HydroShare, http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9</dcterms:bibliographicCitation>
66+
<dc:date>
67+
<dcterms:created>
68+
<rdf:value>2025-04-02T18:24:54.854955+00:00</rdf:value>
69+
</dcterms:created>
70+
</dc:date>
71+
</hsterms:CompositeResource>
72+
</rdf:RDF>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
79bfef4e28354411d80f6397eb14f17f data/contents/example_2.ipynb
2+
45b8073093a2c81fc8084da13fb08d59 data/resourcemap.xml
3+
c24bd73ae61c912f6adbbaead937f22e data/resourcemetadata.xml
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
This zip file contains a HydroShare resource in Bagit format.
2+
3+
The data for the resource you downloaded is in the "data/contents" directory.
4+
5+
The metadata for the resource is stored in the xml file "data/resourcemetadata.xml."
6+
7+
A "resource" is the primary unit of content within HydroShare. Because resources may be made up of one or more files and may also have a hierarchical file/directory structure, HydroShare needed a way to consistently package resources for transport over the Internet. We use the BagIt file packaging format for this purpose. We chose BagIt because it is widely used by a number of organizations and online repositories involved in digital preservation, including the U.S. Library of Congress.
8+
9+
You can find the full BagIt specification here: https://tools.ietf.org/html/draft-kunze-bagit-13.
10+
11+
You can also find a much more detailed description of HydroShare's resource data model and packaging scheme in the following paper:
12+
13+
Horsburgh, J. S., Morsy, M. M., Castronova, A., Goodall, J. L., Gan, T., Yi, H., Stealey, M. J., and D.G. Tarboton (2015). HydroShare: Sharing diverse hydrologic data types and models as social objects within a Hydrologic Information System, Journal Of the American Water Resources Association(JAWRA), https://doi.org/10.1111/1752-1688.12363.
14+
15+
We've summarized the important points below.
16+
17+
Zip File (the "bag") Structure
18+
--------------------------------------
19+
Once you unzip the downloaded file, you should see a single folder. This folder is called the "base directory." The name of this folder is the resource's unique identifier in the HydroShare system. Within the base directory is the content of the resource. The following is an example of what you would get if you download a time series resource, but all resources use the same structure:
20+
21+
1a25b11fa1354773b6edb9495e754f4e/ # Base directory
22+
bagit.txt # Tag file with BagIt version number
23+
manifest-md5.txt # Tag file with resource file manifest
24+
readme.txt # this readme file
25+
tagmanifest-md5.txt # Tag manifest file
26+
data/ # Payload directory
27+
resourcemap.xml # Resource map document
28+
resourcemetadata.xml # Resource-level metadata document
29+
visualization/ # Tag directory for thumbnail visualization
30+
thumbnail.jpg # Thumbnail visualization file
31+
contents/ # Tag directory containing content files
32+
ODM2.sqlite # Content file
33+
34+
Zip File Content
35+
---------------------
36+
The following are descriptions of each element of the resource bag:
37+
38+
"1a25b11fa1354773b6edb9495e754f4e/" - This is the base directory named using the resource's HydroShare identifier. It is a container for the whole resource.
39+
40+
"bagit.txt" - This text file specifies which version of the BagIt specification was used to create the bag.
41+
42+
"manifest-md5.txt" - This is a manifest file that lists every file in the resource and provides a checksum for each file calculated using the MD5 algorithm. The file manifest and the checksums can be used to verify that all of the files within a resource have been retrieved with full integrity.
43+
44+
"readme.txt" - This readme file describes the downloaded HydroShare resource bag.
45+
46+
"tagmanifest-md5.txt" - This is a tag manifest file that lists tag files and their associated checksums calculated using the MD5 algorithm.
47+
48+
"data/" - This subdirectory also called the "payload directory." All of the content files of the resource are stored within the "data" directory.
49+
50+
"resourcemap.xml" - This XML document contains an Open Archives Initiative Object Reuse and Exchange (OAI-ORE) resource map. It is a list of all of the files within the resource and any relationships that exist between them. The purpose of this file is to enable a computer to discover the structure of the resource.
51+
52+
"resourcemetadata.xml" - This XML document stores the main metadata for the resource. It contains at least the standard Dublin Core metadata elements and may contain additional metadata elements, depending on the resource type.
53+
54+
"visualization/" - This is a subdirectory within which an optional thumbnail visualization of the resource may reside if present.
55+
56+
"contents/" - This is the subdirectory within which the content files of the resource will be stored. There can be any number of folders/files within this subdirectory, depending on the required structure of the resource.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ace0ef9419c8edbe164a888d4e4ab7ee bagit.txt
2+
f088113b77567f879055ca48b619928d manifest-md5.txt
3+
0cc4668a651478cdeb1acc38f73a3b31 readme.txt
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BagIt-Version: 0.96
2+
Tag-File-Character-Encoding: UTF-8

0 commit comments

Comments
 (0)