Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding KGCL support via kgcl-rdflib #164

Merged
merged 15 commits into from
Jul 7, 2022
Merged

Adding KGCL support via kgcl-rdflib #164

merged 15 commits into from
Jul 7, 2022

Conversation

cmungall
Copy link
Collaborator

@cmungall cmungall commented Jul 6, 2022

This PR adds experimental support for KGCL, making use of the kgcl-rdflib library by @ckindermann @jamesaoverton @hrshdhgd

Currently support is most complete for the rdflib backend, with some partial support for sqlite, funowl and pronto. Note that currently rdflib is quite slow to parse large ontologies.

KGCL commands are passed by the apply command:

runoak -i go.owl.ttl apply "rename 'nucleus' to 'foo'" -o go-modified.owl.ttl -O ttl

You can get back summaries using diff:

runoak -i go.owl.ttl -vv diff -X go-modified.owl.ttl
  • Adding bindings for kgcl-rdflib
  • recognizing ofn suffix and rdflib prefix
  • Adding some preliminary KGCL bindings. These may move to another package - see Consider adding kgcl bindings althonos/pronto#180
  • fixing signature
  • adding skos definition
  • Adding an apply command for applying KGCL patches Adding a KGCL diff Rationalizing other commands
  • Implementing diffs by wrapping kgcl-rdflib

@cmungall cmungall requested a review from hrshdhgd July 6, 2022 23:52
@cmungall cmungall changed the title kgcl schema Adding KGCL support via kgcl-rdflib Jul 7, 2022
@cmungall cmungall merged commit 3420110 into main Jul 7, 2022
@cmungall cmungall deleted the kgcl-schema branch July 7, 2022 00:29
cmungall added a commit that referenced this pull request Jul 7, 2022
@cmungall cmungall mentioned this pull request Jul 7, 2022
cmungall added a commit that referenced this pull request Jul 7, 2022
* When using pystow, do not use as_uri as this prepends `file:` breaking sqlite locator.
Fixes #166

* comvenience path

* More graceful merge of #164 and #152

* Adding logic for pronto special case

* removing deprecated scheme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant