-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic metadata extraction from ISO, FGDC, and MODS
- Loading branch information
Darren Hardy
committed
Nov 13, 2015
1 parent
ccc134a
commit 8e5a665
Showing
11 changed files
with
745 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module MetadataExtractionHelper | ||
# Extracts properties from the constitutent external metadata file | ||
# @return [Hash] | ||
# TODO: Does not support multiple external metadata files | ||
def extract_metadata | ||
return {} if metadata_files.blank? | ||
h = metadata_files.first.extract_metadata | ||
h.each do |k, v| | ||
send("#{k}=".to_sym, v) # set each property | ||
end | ||
h | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" version="3.4" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-4.xsd"> | ||
<titleInfo> | ||
<title>Department Boundary: Haute-Garonne, France, 2010 </title> | ||
</titleInfo> | ||
<name type="corporate"> | ||
<namePart>Articque informatique</namePart> | ||
<role> | ||
<roleTerm type="text" authority="marcrelator">creator</roleTerm> | ||
</role> | ||
</name> | ||
<typeOfResource>cartographic</typeOfResource> | ||
<typeOfResource>software, multimedia</typeOfResource> | ||
<genre authority="lcgft" valueURI="http://id.loc.gov/authorities/genreForms/gf2011026297">Geospatial data</genre> | ||
<genre authority="rdacontent" valueURI="http://rdvocab.info/termList/RDAContentType/1001">cartographic dataset</genre> | ||
<originInfo> | ||
<publisher>Articque informatique</publisher> | ||
<place> | ||
<placeTerm type="text">Fondettes, FR</placeTerm> | ||
</place> | ||
<dateIssued encoding="w3cdtf" keyDate="yes">2010</dateIssued> | ||
<dateValid encoding="w3cdtf">2010</dateValid> | ||
<edition>1</edition> | ||
</originInfo> | ||
<language> | ||
<languageTerm authority="iso639-2b">eng</languageTerm> | ||
</language> | ||
<physicalDescription> | ||
<form>Shapefile</form> | ||
<digitalOrigin>born digital</digitalOrigin> | ||
</physicalDescription> | ||
<subject> | ||
<cartographics> | ||
<scale>Scale not given.</scale> | ||
<projection>EPSG::2154</projection> | ||
<coordinates>(E 0°23ʹ50ʺ--E 2°3ʹ39ʺ/N 43°55ʹ37ʺ--N 42°41ʹ3ʺ)</coordinates> | ||
</cartographics> | ||
</subject> | ||
<abstract displayLabel="Abstract" lang="eng">This polygon shapefile represents the Department Boundary for the Haute-Garonne department of France for 2010. These are the level 2 administrative divisions (ADM2) of Haute-Garonne. Department is one of the three levels of government below the national level ("territorial collectivities"), between the region and the commune. There are 96 departments in metropolitan France and 5 overseas departments, which also are classified as regions. Departments are further subdivided into 342 arrondissements, themselves divided into cantons; the latter two have no autonomy and are used for the organisation of public services and sometimes elections.</abstract> | ||
<abstract displayLabel="Purpose" lang="eng">This dataset is intended for researchers, students, and policy makers for reference and mapping purposes, and may be used for basic applications such as viewing, querying, and map output production, or to provide a basemap to support graphical overlays and analysis with other spatial data.</abstract> | ||
<note displayLabel="Preferred citation" lang="eng">Articque informatique. (2010). Department Boundary: Haute-Garonne, France, 2010. Articque informatique. Available at: http://purl.stanford.edu/bb099zb1450</note> | ||
<subject> | ||
<topic authority="lcsh" authorityURI="http://id.loc.gov/authorities/subjects.html" lang="eng">Administrative and political divisions</topic> | ||
</subject> | ||
<subject> | ||
<topic authority="lcsh" authorityURI="http://id.loc.gov/authorities/subjects.html" lang="eng">Departments</topic> | ||
</subject> | ||
<subject> | ||
<geographic lang="eng" valueURI="http://sws.geonames.org/3013767/" authority="geonames" authorityURI="http://www.geonames.org/ontology#">Haute-Garonne (France)</geographic> | ||
</subject> | ||
<subject> | ||
<temporal encoding="w3cdtf">2010</temporal> | ||
</subject> | ||
<subject> | ||
<topic authority="ISO19115TopicCategory" authorityURI="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode" valueURI="boundaries">Boundaries</topic> | ||
</subject> | ||
<location> | ||
<url>http://purl.stanford.edu/bb099zb1450</url> | ||
</location> | ||
<recordInfo> | ||
<recordContentSource>Stanford</recordContentSource> | ||
<recordIdentifier>edu.stanford.purl:bb099zb1450</recordIdentifier> | ||
<recordOrigin>This record was translated from ISO 19139 to MODS v.3 using an xsl transformation.</recordOrigin> | ||
<languageOfCataloging> | ||
<languageTerm authority="iso639-2b" type="code">eng</languageTerm> | ||
</languageOfCataloging> | ||
</recordInfo> | ||
<extension displayLabel="geo"> | ||
<rdf:RDF xmlns:gml="http://www.opengis.net/gml/3.2/" xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<rdf:Description rdf:about="http://purl.stanford.edu/bb099zb1450"> | ||
<dc:format>application/x-esri-shapefile; format=Shapefile</dc:format> | ||
<dc:type>Dataset#Polygon</dc:type> | ||
<gml:boundedBy> | ||
<gml:Envelope gml:srsName="EPSG:4326"> | ||
<gml:lowerCorner>0.441292 42.68919</gml:lowerCorner> | ||
<gml:upperCorner>2.048281 43.921245</gml:upperCorner> | ||
</gml:Envelope> | ||
</gml:boundedBy> | ||
<dc:coverage rdf:resource="http://sws.geonames.org/3013767/about.rdf" dc:language="eng" dc:title="Haute-Garonne (France)"/> | ||
</rdf:Description> | ||
</rdf:RDF> | ||
</extension> | ||
<subject authority="EPSG" valueURI="http://opengis.net/def/crs/EPSG/0/4326" displayLabel="WGS84"><cartographics><scale>Scale not given.</scale><projection>EPSG::4326</projection><coordinates>E 0°26ʹ29ʺ--E 2°2ʹ54ʺ/N 43°55ʹ16ʺ--N 42°41ʹ21ʺ</coordinates></cartographics></subject><note displayLabel="WGS84 Cartographics">This layer is presented in the WGS84 coordinate system for web display purposes. Downloadable data are provided in native coordinate system or projection.</note></mods> |
Oops, something went wrong.