%reload_ext autoreload
%autoreload 2
%matplotlib inline
%reload_ext lab_black
import datetime
import kglab
import helpers
import widgets
from IPython.display import display
This work-shop will introduce you to downloading and exploring the RDF created in the Sinopia Linked Data Editing environment. We will then build upon these Sinopia data artifacts we created by applying various machine learning technologies and techniques for such tasks as FAST subject heading and template classification.
This workshop will be broken down into four parts with a break between each session.
There are multiple ways to run the Jupyter notebooks in this workshop, the easiest method to load each notebook using the MyBinder service that will launch a Jupyter lab environment from which you can select and run the notebooks. The most complex method would be download and install Python along with the workshop dependencies on your local laptop or workstation.
To run this workshop's Jupyter notebooks on MyBinder
lab
to the end of the URL and you should a similar display to this:
01_IntroSetup.ipynb
to launch this notebook.python3 -m venv ld4-env
source ld4-env/bin/activate
for Macintosh or Linux. ld4-env\Scripts\Activate
for Windowsgit clone https://github.com/ld4p/{name-of-repo}
pip install -r requirements.txt
to install all of the libraries we will be using for the workshopjupyter lab
The data we will be using in for this workship is located at data/workshop-data.zip
! unzip data/workshop-data.zip -d data/
Archive: data/workshop-data.zip inflating: data/5f8c765d-dc4f-45a0-b2d8-87fe29a38712.txt inflating: data/65a2b059-5ac1-48a6-adbb-870712c3060c.txt inflating: data/ae7a9f2c-a5db-4472-80fe-9a30f311386d.txt inflating: data/d900f0f2-d497-4e58-84c5-2099bd31a967.txt inflating: data/production.json inflating: data/stage-text-nodes.json inflating: data/stage.json inflating: data/summaries.pkl inflating: data/topic_uri_label_utf8.csv
Jupyter notebooks are a popular computing environment in big data and machine learning communities that runs in your web browser. A notebook is made up of one more cells that are contain either documentation, written in Markdown, or Python code. You can move cells around, copy, delete, or change the type using the notebook toolbar:
Here are the important buttons:
print(1 + 1)
2
We can use Sinopia API to only retrieve resources associated with a Sinopia group. The general URL pattern is
https://api.{env?}.sinopia.io/resources?group={name}
.
Some examples:
https://api.stage.sinopia.io/resources?group=pcc
https://api.sinopia.io/resources?group=yale
To assist in generating the group API URL, we will use the sinopia_api
widget:
display(widgets.sinopia_api_group_widget)
VBox(children=(HBox(children=(RadioButtons(description='Environment:', options=(('Development', 'https://api.d…
pcc_kg = helpers.create_kg("https://api.stage.sinopia.io/resource?group=pcc")
0....100....200..
len(pcc_kg.rdf_graph())
8081
Using the sinopia_api
widget to generate the Sinopia API url for all groups, we can then use a helper function, create_kg
that will download each resource, extract the RDF, and then return the Knowledge Graph after all of the RDF resources have been parsed.
start = datetime.datetime.utcnow()
print(f"Started creation of knowledge graph for Sinopia Stage at {start}")
stage_kg = helpers.create_kg("https://api.stage.sinopia.io/resource")
end = datetime.datetime.utcnow()
print(f"""Finished at {end}, total time {(end-start).seconds / 60.} minutes""")
Started creation of knowledge graph for Sinopia Stage at 2022-07-11 13:15:39.845448 0....100....200.
https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b21 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b10 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b27 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b13 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b21 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b19 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b21 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b12 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b12 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b12 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b4 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b24 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b33 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b24 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b35 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b31 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b35 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b35 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b16 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b9 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b21 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b22 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b30 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b9 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b16 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b27 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b27 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b28 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b25 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b33 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b27 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b35 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b27 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b24 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b25 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b28 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b27 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b35 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b33 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b34 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b12 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b13 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b4 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b30 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b31 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b7 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b33 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b9 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b10 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b13 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b10 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b19 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b24 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b27 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b35 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b9 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b16 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b19 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b7 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b13 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b25 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b7 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b9 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b30 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b12 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b21 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b31 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b24 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b30 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b33 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b19 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b28 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b12 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b30 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b30 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b30 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b34 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b33 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b22 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b12 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b4 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b21 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b9 does not look like a valid URI, trying to serialize this will break.
.
https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b22 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b34 does not look like a valid URI, trying to serialize this will break.
Failed to parse {'user': 'tkao', 'group': 'PCC-Templates', 'editGroups': ['ucdavis'], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': '_PCC BF2 Admin Metadata', 'uri': 'https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata', 'timestamp': '2022-02-02T15:40:03.737Z'} "https://api.stage.sinopia.io/resource/_PCC BF2 Admin Metadata#b18" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ..300....400.
https://api.stage.sinopia.io/resource/Publication Frequency#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Publication Frequency#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Publication Frequency#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Publication Frequency#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Publication Frequency#b2 does not look like a valid URI, trying to serialize this will break.
.Failed to parse {'user': 'hlin', 'group': 'berkeley', 'editGroups': ['csu'], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'Publication Frequency', 'uri': 'https://api.stage.sinopia.io/resource/Publication Frequency', 'timestamp': '2022-05-24T19:05:06.253Z'} "https://api.stage.sinopia.io/resource/Publication Frequency#b2" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ..500.
https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b363 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b359 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b367 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b361 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b363 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b361 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b361 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b365 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b367 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b365 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b365 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b363 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b367 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b361 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b365 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b359 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b359 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b359 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b365 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b363 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b361 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b363 does not look like a valid URI, trying to serialize this will break.
.Failed to parse {'user': 'Anettemu', 'group': 'norway', 'editGroups': [], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'norld:BF:m:translitterert tittel', 'uri': 'https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel', 'timestamp': '2022-03-15T12:18:34.864Z'} "https://api.stage.sinopia.io/resource/norld:BF:m:translitterert tittel#b366" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ..600
https://api.stage.sinopia.io/resource/norld:RT:RDA:Monograph:Work:PreferredTitle [en]#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:RT:RDA:Monograph:Work:PreferredTitle [en]#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:RT:RDA:Monograph:Work:PreferredTitle [en]#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/norld:RT:RDA:Monograph:Work:PreferredTitle [en]#b2 does not look like a valid URI, trying to serialize this will break.
.Failed to parse {'user': 'elisecon', 'group': 'norway', 'editGroups': [], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'norld:RT:RDA:Monograph:Work:PreferredTitle [en]', 'uri': 'https://api.stage.sinopia.io/resource/norld:RT:RDA:Monograph:Work:PreferredTitle [en]', 'timestamp': '2022-03-28T03:30:27.156Z'} "https://api.stage.sinopia.io/resource/norld:RT:RDA:Monograph:Work:PreferredTitle [en]#b2" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? .
https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b17 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b17 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b17 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b16 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b17 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b16 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b18 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b17 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b17 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b17 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b15 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b16 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b4 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b4 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b4 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b5 does not look like a valid URI, trying to serialize this will break.
.Failed to parse {'user': 'RJRohrbacher', 'group': 'stanford-templates', 'editGroups': [], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'Stanford:bf2:Contribution (Instance)', 'uri': 'https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)', 'timestamp': '2022-03-30T21:05:39.922Z'} "https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Instance)#b15" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? Failed to parse {'user': 'RJRohrbacher', 'group': 'stanford-templates', 'editGroups': [], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'Stanford:bf2:Contribution (Manifestation)', 'uri': 'https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)', 'timestamp': '2022-03-30T21:22:24.719Z'} "https://api.stage.sinopia.io/resource/Stanford:bf2:Contribution (Manifestation)#b4" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? .700....800....900...
https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b157 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b164 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b165 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b159 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b159 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b164 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b159 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b163 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b161 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b161 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b163 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b159 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b161 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b164 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b157 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b161 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b157 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b155 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b155 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b161 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b155 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b164 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b157 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b155 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b163 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b165 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b155 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b163 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b163 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b163 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b164 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b165 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b155 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b161 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b159 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b159 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b164 does not look like a valid URI, trying to serialize this will break.
.1,000Failed to parse {'user': 'Bjorge_Vestli', 'group': 'norway', 'editGroups': [], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'NB-lab:RDA:Serieverk:Bjorge [nb]', 'uri': 'https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]', 'timestamp': '2022-05-20T09:39:35.104Z'} "https://api.stage.sinopia.io/resource/NB-lab:RDA:Serieverk:Bjorge [nb]#b159" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ....1,100....1,200....1,300....1,400....1,500....1,600....1,700....1,800....1,900...
https://api.stage.sinopia.io/resource/this is a test#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this is a test#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this is a test#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this is a test#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this is a test#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this is a test#b2 does not look like a valid URI, trying to serialize this will break.
.2,000Failed to parse {'user': 'michelle', 'group': 'cornell', 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'this is a test', 'uri': 'https://api.stage.sinopia.io/resource/this is a test', 'timestamp': '2021-02-16T20:12:05.927Z', 'editGroups': [], 'sinopiaLocalAdminMetadataFor': []} "https://api.stage.sinopia.io/resource/this is a test#b2" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ....2,100....2,200....2,300....2,400....2,500
https://api.stage.sinopia.io/resource/this test#b7 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b7 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b7 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b7 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b3 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b6 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b5 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/this test#b5 does not look like a valid URI, trying to serialize this will break.
.Failed to parse {'user': 'michelle', 'group': 'cornell', 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'this test', 'uri': 'https://api.stage.sinopia.io/resource/this test', 'timestamp': '2021-09-03T22:36:47.171Z', 'editGroups': [], 'sinopiaLocalAdminMetadataFor': []} "https://api.stage.sinopia.io/resource/this test#b6" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ...2,600....2,700....2,800
https://api.stage.sinopia.io/resource/my fav template#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/my fav template#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/my fav template#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/my fav template#b2 does not look like a valid URI, trying to serialize this will break. https://api.stage.sinopia.io/resource/my fav template#b2 does not look like a valid URI, trying to serialize this will break.
Failed to parse {'user': 'michelle', 'group': 'cornell', 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'my fav template', 'uri': 'https://api.stage.sinopia.io/resource/my fav template', 'timestamp': '2021-08-25T17:09:48.147Z', 'editGroups': [], 'sinopiaLocalAdminMetadataFor': []} "https://api.stage.sinopia.io/resource/my fav template#b2" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ....2,900....3,000 None missing data Finished at 2022-07-11 13:17:35.742737, total time 1.9166666666666667 minutes
To save the resulting knowledge graph, we will use the method save_jsonld
that serializes the Sinopia Stage graph to JSON-LD, we will load and use this file in subsequent Jupyter notebooks in this workshop.
len(stage_kg.rdf_graph())
138113
stage_kg.save_jsonld("data/stage.json")
start = datetime.datetime.utcnow()
print(f"Started creation of knowledge graph for Sinopia Production at {start}")
prod_kg = helpers.create_kg("https://api.sinopia.io/resource")
end = datetime.datetime.utcnow()
print(f"""Finished at {end}, total time {(end-start).seconds / 60.} minutes""")
Started creation of knowledge graph for Sinopia Production at 2022-07-11 13:19:14.376403
https://api.sinopia.io/resource/Φυσικό πρόσωπο#b3 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Φυσικό πρόσωπο#b4 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Φυσικό πρόσωπο#b4 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Φυσικό πρόσωπο#b3 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Φυσικό πρόσωπο#b3 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Φυσικό πρόσωπο#b3 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Φυσικό πρόσωπο#b4 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Φυσικό πρόσωπο#b4 does not look like a valid URI, trying to serialize this will break.
Failed to parse {'user': 'szapoun', 'group': 'other', 'editGroups': [], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'Φυσικό πρόσωπο', 'uri': 'https://api.sinopia.io/resource/Φυσικό πρόσωπο', 'timestamp': '2022-02-04T10:26:06.700Z'} "https://api.sinopia.io/resource/Φυσικό πρόσωπο#b3" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? 0....100....200....300....400....500....600....700...
https://api.sinopia.io/resource/Official RDA Monograph Compilation Translation#b4 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Official RDA Monograph Compilation Translation#b4 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Official RDA Monograph Compilation Translation#b4 does not look like a valid URI, trying to serialize this will break. https://api.sinopia.io/resource/Official RDA Monograph Compilation Translation#b4 does not look like a valid URI, trying to serialize this will break.
.800Failed to parse {'user': 'pfrank', 'group': 'dlc', 'editGroups': [], 'templateId': 'sinopia:template:resource', 'types': ['http://sinopia.io/vocabulary/ResourceTemplate'], 'bfAdminMetadataRefs': [], 'sinopiaLocalAdminMetadataForRefs': [], 'bfItemRefs': [], 'bfInstanceRefs': [], 'bfWorkRefs': [], 'id': 'Official RDA Monograph Compilation Translation', 'uri': 'https://api.sinopia.io/resource/Official RDA Monograph Compilation Translation', 'timestamp': '2022-07-05T14:38:14.468Z'} "https://api.sinopia.io/resource/Official RDA Monograph Compilation Translation#b4" does not look like a valid URI, I cannot serialize this as N3/Turtle. Perhaps you wanted to urlencode it? ....900....1,000....1,100....1,200....1,300....1,400....1,500....1,600....1,700....1,800....1,900....2,000....2,100....2,200....2,300....2,400....2,500....2,600....2,700....2,800....2,900....3,000....3,100....3,200....3,300....3,400....3,500....3,600....3,700....3,800....3,900....4,000....4,100....4,200.Finished at 2022-07-11 13:23:07.582720, total time 3.8833333333333333 minutes
prod_kg.save_jsonld("data/production.json")
Compare the total number of triples for National Library of Medicine in each Sinopia environment; development, stage, and production.