This metadata-docs/ directory contains metadata technical documentation and specifications that don't fit in the existing codebase documentation methods, but require management, a review process, and versioning beyond what is captured in the GitHub wiki. In particular, when a Hyrax version is released, the metadata-docs/ travel with the codebase and indicate the current metadata specifications followed in that release. This documentation doesn't indicate recommendations for individual implementations of Hyrax (your metadata documentation will no doubt vary), but aims to clarify what metadata specifications exist in the core Hyrax codebase.
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 string | |
import sys | |
import requests | |
import whois | |
from nltk import tokenize | |
BOOKFILE = sys.argv[1] | |
OUTPUTFILE = BOOKFILE + '.possible-domains.txt' |
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
# Sample gitconfig | |
# | |
[hub] | |
protocol = https | |
[user] | |
name = Jeremy Friesen | |
email = [email protected] | |
[credential] | |
helper = osxkeychain | |
[github] |
Within the agent element in the UMDM schema there are two attributes that indicate agent role and agent type. Not all agents have both attributes, but at the least, each agent should have a type. There are three types: creator, contributor, and provider. The UMDM schema differentiates between personal and corporate names via the use of the persName or corpName element within agent.
A simple example of a person creator:
<agent type="creator">
<persName>Olson, Mancur</persName>
</agent>
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"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> | |
<xsl:output method="text"/> | |
<xsl:output method="html" indent="yes" name="html"/> | |
<xs:element name="//date" type="xs:date"/> | |
<xsl:template match="/"> | |
<xsl:for-each select="//person"> | |
<xsl:variable name="filename" select="concat('people/', lower-case(page))"/> |