Skip to content

Instantly share code, notes, and snippets.

@uogbuji
Created May 27, 2015 00:55
Show Gist options
  • Save uogbuji/3542b0cda4db057ad209 to your computer and use it in GitHub Desktop.
Save uogbuji/3542b0cda4db057ad209 to your computer and use it in GitHub Desktop.
>>> from rdflib import graph
>>> g = graph.Graph()
>>> _ = g.parse('http://labs.libhub.org/denverpl/resource/WdnURkYx/', format='rdfa')
>>> len(g)
65
>>> print(g.serialize(format='n3').decode('utf-8'))
@prefix bf: <http://bibfra.me/vocab/lite/> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix lh: <http://libhub.org/vocab/> .
@prefix ns1: <http://bibfra.me/vocab/marc/> .
@prefix ns2: <http://schema.org/> .
@prefix ns3: <http://purl.org/dc/elements/1.1/> .
@prefix ns4: <http://bibfra.me/purl/versa/> .
@prefix ns5: <http://bibfra.me/vocab/marcext/> .
@prefix ns6: <http://www.w3.org/ns/rdfa#> .
@prefix ns7: <http://bibfra.me/vocab/relation/> .
@prefix og: <http://ogp.me/ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://labs.libhub.org/denverpl/resource/WdnURkYx/> a bf:Work,
ns1:Books,
ns1:LanguageMaterial,
ns2:Book ;
rdfs:label "Ndewo, Colorado poems by Uche Ogbuji"@en ;
ns4:type " http://bibfra.me/vocab/lite/Work"@en,
" http://bibfra.me/vocab/marc/Books"@en,
" http://bibfra.me/vocab/marc/LanguageMaterial"@en ;
bf:creator <http://labs.libhub.org/denverpl/resource/rJd8-agP/> ;
bf:genre <http://labs.libhub.org/denverpl/resource/CgB1vqLy/>,
<http://labs.libhub.org/denverpl/resource/hIbZDx64/> ;
bf:language "eng"@en ;
bf:subject <http://labs.libhub.org/denverpl/resource/T-6iKaMe/> ;
bf:title "Ndewo, Colorado"@en,
"Ndewo, Colorado poems by Uche Ogbuji"@en ;
ns1:catalogingSource "DPL"@en ;
ns1:index "no index present"@en ;
ns1:literaryForm "poetry"@en ;
ns1:summary "\"[Poetry] fusing Igbo culture, European Classicism, U.S. Mountain West setting, and Hip-Hop influence\"--Page [4] of cover."@en ;
ns1:titleStatement "poems by Uche Ogbuji"@en ;
ns5:tag-008 "141107s2013 cau 000 p eng d"@en ;
ns5:tag-020-XX-a " 0615886086 (pbk.)"@en,
" 9780615886084 (pbk.)"@en ;
ns5:tag-092-0X-2 "23"@en ;
ns5:tag-092-0X-a "811.6"@en ;
ns7:author <http://labs.libhub.org/denverpl/resource/rJd8-agP/> ;
cc:attributionName " Denver Public Library"@en ;
cc:attributionURL <http://www.denverlibrary.org> ;
lh:compositionLink <http://labs.libhub.org/denverpl/composition/Ndewo%2C%20Colorado%20poems%20by%20Uche%20Ogbuji/wIOgywhm/> ;
lh:inLink <http://labs.libhub.org/denverpl/resource/wIOgywhm/> ;
lh:source <http://labs.libhub.org/denverpl/> ;
og:description "\"[Poetry] fusing Igbo culture, European Classicism, U.S. Mountain West setting, and Hip-Hop influence\"--Page [4] of cover."@en ;
og:title "Ndewo, Colorado poems by Uche Ogbuji"@en ;
ns3:creator <http://labs.libhub.org/denverpl/resource/rJd8-agP/> ;
ns3:language "eng"@en ;
ns3:subject <http://labs.libhub.org/denverpl/resource/T-6iKaMe/> ;
ns3:title "Ndewo, Colorado"@en ;
dct:description "\"[Poetry] fusing Igbo culture, European Classicism, U.S. Mountain West setting, and Hip-Hop influence\"--Page [4] of cover."@en ;
dct:title """
Ndewo, Colorado poems by Uche Ogbuji (Work) - Denver Public Library : Libhub
"""@en,
"Ndewo, Colorado poems by Uche Ogbuji"@en ;
ns2:about <http://labs.libhub.org/denverpl/resource/T-6iKaMe/> ;
ns2:creator <http://labs.libhub.org/denverpl/resource/rJd8-agP/> ;
ns2:description "\"[Poetry] fusing Igbo culture, European Classicism, U.S. Mountain West setting, and Hip-Hop influence\"--Page [4] of cover."@en ;
ns2:genre <http://labs.libhub.org/denverpl/resource/CgB1vqLy/>,
<http://labs.libhub.org/denverpl/resource/hIbZDx64/> ;
ns2:inLanguage "eng"@en ;
ns2:name "Ndewo, Colorado"@en,
"Ndewo, Colorado poems by Uche Ogbuji"@en ;
xhv:license <http://creativecommons.org/licenses/by/4.0/> ;
ns6:usesVocabulary ns2: .
<http://labs.libhub.org/denverpl/> a ns2:Library ;
ns2:name """
Denver Public Library
"""@en .
<http://labs.libhub.org/denverpl/composition/Ndewo%2C%20Colorado%20poems%20by%20Uche%20Ogbuji/wIOgywhm/> a bf:Instance .
<http://labs.libhub.org/denverpl/resource/wIOgywhm/> a bf:Instance ;
ns2:name """
Ndewo, Colorado poems by Uche Ogbuji
"""@en .
<http://labs.libhub.org/denverpl/resource/CgB1vqLy/> a bf:Form ;
ns2:name """
Poetry
"""@en .
<http://labs.libhub.org/denverpl/resource/hIbZDx64/> a bf:Form ;
ns2:name """
American poetry > 21st century
"""@en .
<http://labs.libhub.org/denverpl/resource/T-6iKaMe/> a bf:Concept ;
ns2:name """
Colorado > Poetry
"""@en .
<http://labs.libhub.org/denverpl/resource/rJd8-agP/> a bf:Person,
ns2:Person ;
ns2:name """
Ogbuji, Uche,
"""@en .
[] xhv:role xhv:navigation .
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment