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
<!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" /> |
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"?> | |
<mods:mods version="3.5" | |
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://3windmills.com/lsc615/xml-edit-validate/xsd/mods-3-5.xsd" | |
xmlns:mods="http://www.loc.gov/mods/v3" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<mods:titleInfo> | |
<mods:nonSort>The </mods:nonSort> | |
<mods:title>Atlantic polka</mods:title> | |
</mods:titleInfo> | |
<mods:name> |
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
(: | |
The bulk of this comes from this gentleman's masterful work found here: | |
https://github.com/freshie/ml-semantics/blob/master/transitive-closure-with-paths.xqy | |
I have made it so that the prefLabel (assuming SKOS) comes along with the URI of the node. | |
This code was taken from the marklogic Semantics functions and was rework in order to have paths shown | |
:) | |
xquery version "1.0-ml"; |
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: |
OlderNewer