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
#!/usr/bin/env python | |
""" | |
This script takes all LC names in the SNAC data dump and tries | |
to resolve them to ID.LOC.GOV URIS. It requires rdflib to be installed | |
and outputs an RDF/XML file. Gratitude to Ed Summers whose code at [1] | |
was used as a foundation. | |
Run: |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<LogicalTable mdsid="m00006b36-07f3-0000-714b-e31d00000000" name="Dim - Company" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.oracle.com/obis/repository" subjectAreaRef="/oracle/bi/server/base/BusinessModel/0021f84a-07d0-0000-714b-e31d00000000.xml#m0021f84a-07d0-0000-714b-e31d00000000"> | |
<Description> | |
<![CDATA[Company Hierarchy]]> | |
</Description> | |
</LogicalTable> |
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
000500170000800800410002 | |
800800410002503500210006690600450008 | |
503500210006690600450008701000170013201500120014 | |
690600450008701000170013201500120014902000120016104000180017 | |
701000170013201500120014902000120016104000180017304100140019105000210020 | |
201500120014902000120016104000180017304100140019105000210020524501270022626000480035 | |
902000120016104000180017304100140019105000210020524501270022626000480035330000280040149000330042 | |
104000180017304100140019105000210020524501270022626000480035330000280040149000330042950000170046250000620047 | |
304100140019105000210020524501270022626000480035330000280040149000330042950000170046250000620047950400610054160000320060 | |
105000210020524501270022626000480035330000280040149000330042950000170046250000620047950400610054160000320060260000500063470000200068 |
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
import java.io.FileReader; | |
import javax.xml.stream.*; | |
import javax.xml.transform.*; | |
import javax.xml.transform.stream.StreamResult; | |
import javax.xml.transform.dom.*; | |
/* Saxonica */ | |
import net.sf.saxon.s9api.*; | |
import org.w3c.dom.Document; | |
import org.w3c.dom.Element; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BF Editor: Dublin Core Example</title> | |
<script type="text/javascript" src="http://bibframe.org/static/bfe/builds/bfe.min.js"></script> | |
<link rel="stylesheet" href="http://bibframe.org//static/bfe/builds/bfe.min.css" /> | |
<script type="text/javascript"> | |
function myCB(jsonld) { |
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
declare namespace marcxml = "http://www.loc.gov/MARC21/slim"; | |
let $mtexts := ('000 02018nas a2200433Ia 450 | |
001 8277786 | |
005 20140505165744.0 | |
008 140505c198u9999cc uu p 0 e0chi d | |
035 __ |a (OCoLC)ocn879220545 | |
040 __ |a CSt-H |b eng |c PULEA |d OCLCQ |d PULEA | |
035 __ |a (OCoLC)879220545 | |
043 __ |a a-cc--- |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<div class="row">hollowayemory1885whitmanwalt18191892leavesofgrassengworktext | |
<div> | |
<h4>hollowayemory1885whitmanwalt18191892leavesofgrassengworktext (3)</h4> | |
<div class="panel-group" id="hollowayemory1885whitmanwalt18191892leavesofgrassengworktext"> | |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<a data-toggle="collapse" data-parent="#hollowayemory1885whitmanwalt18191892leavesofgrassengworktext" href="#hollowayemory1885whitmanwalt18191892leavesofgrassengworktext-2">5922543</a> | |
</div> | |
<div id="hollowayemory1885whitmanwalt18191892leavesofgrassengworktext-2" class="panel-collapse collapse"> |
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
xquery version "3.0"; | |
(: | |
to run: | |
zorba --serialize-html -f -q parse-PYMK.xqy -e pymkhtml:=file:///home/kefo/workspaces/li/litest.html > out.html | |
:) | |
(: IMPORTED MODULES :) | |
import module namespace http = "http://zorba.io/modules/http-client"; | |
import module namespace file = "http://expath.org/ns/file"; |
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
<record | |
xmlns="http://www.loc.gov/MARC21/slim" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"> | |
<leader>01147cam a2200265 a 4500</leader> | |
<controlfield tag="001">15219373</controlfield> | |
<controlfield tag="005">20090831121301.0</controlfield> | |
<controlfield tag="008">080314s2008 nyu b 001 0 eng </controlfield> | |
<datafield tag="010" ind1=" " ind2=" "> | |
<subfield code="a"> 2008011507</subfield> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Validation Links</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="http://bibframe.org/static/css/bootstrap.css" rel="stylesheet" media="all" /> | |
<!-- <link href="http://bibframe.org/static/css/bootstrap-responsive.css" rel="stylesheet" /> --> | |
<link href="http://bibframe.org/static/css/style.css" rel="stylesheet" /> |
OlderNewer