Skip to content

Commit

Permalink
[#59] Support LCGFT
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Jun 29, 2018
1 parent f81ce79 commit 48f53c6
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/lcgft-gf2011026530.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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://id.loc.gov/authorities/genreForms/gf2011026530> a skos:Concept ;
dcterms:created "2011-05-07"^^xsd:date ;
dcterms:identifier "gf2011026530" ;
dcterms:modified "2018-02-20"^^xsd:date ;
skos:altLabel "Images, Remote-sensing"@en,
"Multispectral scanning images"@en,
"SLAR images"@en,
"Satellite images"@en,
"Side-looking airborne radar images"@en ;
skos:inScheme <http://id.loc.gov/authorities/genreForms> ;
skos:note "Images of planetary surfaces created by means of reflected or emitted electromagnetic energy."@en,
"Source: AACR2, 1988 rev.:"@en,
"Source: Cartographic materials: A Manual of interpretation for AACR2, 1982:"@en,
"Source: Conversation with M.L. Larsgaard, Map & Imagery Lab, Library, Univ. of Calif., Santa Barbara, May 20, 1994"@en,
"Source: Environmental Research Institute of Michigan. Remote sensing image of Michigan, 1985."@en,
"Source: Introduction to remote sensing, c2007:"@en,
"Source: Map Online Users Group Newsletter:"@en,
"Source: Satellite images of Australia, c1982."@en ;
skos:prefLabel "Remote-sensing images"@en .

80 changes: 80 additions & 0 deletions examples/lcgft-gf2011026530.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<marcxml:record xmlns:marcxml="http://www.loc.gov/MARC21/slim" xmlns:idx="info:lc/xq-modules/lcindex" xmlns:madsrdf="http://www.loc.gov/mads/rdf/v1#" xmlns:ri="http://id.loc.gov/ontologies/RecordInfo#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:mets="http://www.loc.gov/METS/" xmlns:semtriples="http://marklogic.com/semantic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:streams="info:lc/streams#">
<marcxml:leader>01597cz a2200313n 4500</marcxml:leader>
<marcxml:controlfield tag="001">gf2011026530</marcxml:controlfield>
<marcxml:controlfield tag="003">DLC</marcxml:controlfield>
<marcxml:controlfield tag="005">20180220154626.4</marcxml:controlfield>
<marcxml:controlfield tag="008">110507|| anznnbabn |a ana </marcxml:controlfield>
<marcxml:datafield tag="010" ind1=" " ind2=" ">
<marcxml:subfield code="a">gf2011026530</marcxml:subfield>
<marcxml:subfield code="z">sh2009025023</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="040" ind1=" " ind2=" ">
<marcxml:subfield code="a">DLC</marcxml:subfield>
<marcxml:subfield code="b">eng</marcxml:subfield>
<marcxml:subfield code="c">DLC</marcxml:subfield>
<marcxml:subfield code="f">lcgft</marcxml:subfield>
<marcxml:subfield code="d">DLC</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="155" ind1=" " ind2=" ">
<marcxml:subfield code="a">Remote-sensing images</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="455" ind1=" " ind2=" ">
<marcxml:subfield code="a">Images, Remote-sensing</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="455" ind1=" " ind2=" ">
<marcxml:subfield code="a">Multispectral scanning images</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="455" ind1=" " ind2=" ">
<marcxml:subfield code="a">Satellite images</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="455" ind1=" " ind2=" ">
<marcxml:subfield code="a">Side-looking airborne radar images</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="455" ind1=" " ind2=" ">
<marcxml:subfield code="a">SLAR images</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="555" ind1=" " ind2=" ">
<marcxml:subfield code="w">g</marcxml:subfield>
<marcxml:subfield code="a">Cartographic materials</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="555" ind1=" " ind2=" ">
<marcxml:subfield code="w">g</marcxml:subfield>
<marcxml:subfield code="a">Informational works</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="555" ind1=" " ind2=" ">
<marcxml:subfield code="w">g</marcxml:subfield>
<marcxml:subfield code="a">Visual works</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="670" ind1=" " ind2=" ">
<marcxml:subfield code="a">AACR2, 1988 rev.:</marcxml:subfield>
<marcxml:subfield code="b">pp. 108-116.</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="670" ind1=" " ind2=" ">
<marcxml:subfield code="a">Cartographic materials: A Manual of interpretation for AACR2, 1982:</marcxml:subfield>
<marcxml:subfield code="b">p. 90 (aerial remote-sensing image; multispectral scanning image; Sidelooking airborne radar (SLAR))</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="670" ind1=" " ind2=" ">
<marcxml:subfield code="a">Conversation with M.L. Larsgaard, Map &amp; Imagery Lab, Library, Univ. of Calif., Santa Barbara, May 20, 1994</marcxml:subfield>
<marcxml:subfield code="b">(Remote-sensing images)</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="670" ind1=" " ind2=" ">
<marcxml:subfield code="a">Satellite images of Australia, c1982.</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="670" ind1=" " ind2=" ">
<marcxml:subfield code="a">Map Online Users Group Newsletter:</marcxml:subfield>
<marcxml:subfield code="b">no. 17, p. 6 (type of material subdivision ... Remote-sensing imagery)</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="670" ind1=" " ind2=" ">
<marcxml:subfield code="a">Environmental Research Institute of Michigan. Remote sensing image of Michigan, 1985.</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="670" ind1=" " ind2=" ">
<marcxml:subfield code="a">Introduction to remote sensing, c2007:</marcxml:subfield>
<marcxml:subfield code="b">introd. (remote sensing: observation of the Earth's land and water surfaces by means of reflected or emitted electromagnetic energy)</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="675" ind1=" " ind2=" ">
<marcxml:subfield code="a">Glossary of the mapping sciences, 1994</marcxml:subfield>
</marcxml:datafield>
<marcxml:datafield tag="680" ind1=" " ind2=" ">
<marcxml:subfield code="i">Images of planetary surfaces created by means of reflected or emitted electromagnetic energy.</marcxml:subfield>
</marcxml:datafield>
</marcxml:record>
3 changes: 3 additions & 0 deletions mc2skos/vocabularies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ subject_schemes:
lccn:
concept: http://id.loc.gov/authorities/names/{control_number}
scheme: http://id.loc.gov/authorities/names/
lcgft:
concept: http://id.loc.gov/authorities/genreForms/{control_number}
scheme: http://id.loc.gov/authorities/genreForms
ddcri:
scheme: http://id.loc.gov/vocabulary/subjectSchemes/ddcri
TESA:
Expand Down
1 change: 1 addition & 0 deletions test/test_process_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def test_rvk_example(marc, match):
check_processing(marc, Graph(), **options)

authority_vocabularies = {
'lcgft': 'http://id.loc.gov/authorities/genreForms/',
'lcsh': 'http://id.loc.gov/authorities/subjects/',
'noubomn': 'http://data.ub.uio.no/realfagstermer/',
'noubojur': 'http://data.ub.uio.no/lskjema/',
Expand Down

0 comments on commit 48f53c6

Please sign in to comment.