-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pulled current bf2 xml, serialized to file
- Loading branch information
0 parents
commit dea37cb
Showing
6 changed files
with
6,428 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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') |
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
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 |
Oops, something went wrong.