Skip to content

Commit

Permalink
pulled current bf2 xml, serialized to file
Browse files Browse the repository at this point in the history
  • Loading branch information
cmharlow committed Apr 27, 2016
0 parents commit dea37cb
Show file tree
Hide file tree
Showing 6 changed files with 6,428 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Folder view configuration files
.DS_Store
Desktop.ini

# Thumbnail cache files
._*
Thumbs.db

# Files that might appear on external disks
.Spotlight-V100
.Trashes

# Compiled Python files
*.pyc

# Compiled C++ files
*.out

# Application specific files
venv
node_modules
.sass-cache
8 changes: 8 additions & 0 deletions grabBF2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import rdflib

bf2url = 'http://id.loc.gov/ontologies/bibframe.rdf'

bf2rdf = rdflib.Graph().parse(bf2url)
bf2rdf.serialize('specs/bibframe2.xml', format='xml')
bf2rdf.serialize('specs/bibframe2.nt', format='nt')
bf2rdf.serialize('specs/bibframe2.ttl', format='turtle')
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
isodate==0.5.4
pyparsing==2.1.1
rdflib==4.2.1
wheel==0.24.0
Loading

0 comments on commit dea37cb

Please sign in to comment.