Skip to content

Instantly share code, notes, and snippets.

View ajnelson-nist's full-sized avatar

Alex Nelson ajnelson-nist

View GitHub Profile
@ajnelson-nist
ajnelson-nist / .gitignore
Last active February 2, 2024 13:51
An OWL Profiles test of punning in response to UCO Issue 586
*.jar
_*
@ajnelson-nist
ajnelson-nist / .gitignore
Last active January 17, 2024 02:55
pySHACL-Issue-220
.venv.done.log
venv
@ajnelson-nist
ajnelson-nist / test-uco-rdf-toolkit.sh
Last active June 4, 2019 20:42
Test round-trip conversion of UCO ontology file
#!/bin/bash
# This software was developed at the National Institute of Standards
# and Technology by employees of the Federal Government in the course
# of their official duties. Pursuant to title 17 Section 105 of the
# United States Code this software is not subject to copyright
# protection and is in the public domain. NIST assumes no
# responsibility whatsoever for its use by other parties, and makes
# no guarantees, expressed or implied, about its quality,
# reliability, or any other characteristic.
from __future__ import division
import sys
from itertools import *
from pylab import *
from nltk.corpus import brown
from collections import Counter
# Pick a lowercasing function according to Python version
if sys.version_info.major < 3:
from string import lower