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

First pass at thick triples prototype #77

Draft
wants to merge 35 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a349f04
First pass at thick triples prototype
jamesaoverton Mar 26, 2021
f36d541
Add comment for ofs2omn
jamesaoverton Mar 26, 2021
a63ba8e
Implement OWL annotations
jamesaoverton Mar 29, 2021
bc87762
WIP on Turtle output
jamesaoverton Apr 23, 2021
d749e1e
implement RDF reification
lmcmicu Apr 23, 2021
78feee1
Merge branch 'prototype' of github.com:ontodev/gizmos into prototype
lmcmicu Apr 23, 2021
241c4d3
remove duplicated line resulting from previous merge
lmcmicu Apr 23, 2021
5937782
rewrite thick2ttl and helper functions to return objects not strings
lmcmicu Apr 24, 2021
c1bb078
small improvements and comments etc.
lmcmicu Apr 24, 2021
004613f
handle typed, language, and plain literals correctly when rendering t…
lmcmicu May 1, 2021
5930386
correct annotations/reifications handling
lmcmicu May 3, 2021
fed016a
implement triples2ttls
lmcmicu May 7, 2021
bc3d461
fix typo
lmcmicu May 9, 2021
5da9435
fix typo
lmcmicu May 9, 2021
f32a78b
comment out unnecessary safeguard against infinite looping
lmcmicu May 10, 2021
ba2d898
convert ttls from strings to actual triples
lmcmicu May 11, 2021
3efab31
make proper triples using rdflib (still rough)
lmcmicu May 11, 2021
63433bd
(work in progress) refactor
lmcmicu May 13, 2021
9b587e5
(work in progress) remove unnecessary print
lmcmicu May 13, 2021
a1ba0eb
finalise round-trip (passing for example.db, but still rough)
lmcmicu May 14, 2021
54b828d
add filter option
lmcmicu May 16, 2021
96491da
interim commit; refactoring in preparation for redesign
lmcmicu May 19, 2021
7afbea3
almost there (round trip)
lmcmicu May 20, 2021
a11cc1b
refactor away clutter
lmcmicu May 21, 2021
763a173
closer
lmcmicu May 23, 2021
40499a3
remove no longer needed code
lmcmicu May 24, 2021
7b39b78
closer
lmcmicu May 24, 2021
a1110c5
closer
lmcmicu May 26, 2021
36f0bcd
round trip done (but rough)
lmcmicu May 26, 2021
33995b4
clean up
lmcmicu May 26, 2021
e0bff15
add missing condition
lmcmicu Jun 3, 2021
013de57
add optional nested logging
lmcmicu Jun 4, 2021
f1b115f
convert thin rows one stanza at a time
lmcmicu Jun 14, 2021
5ea8a1a
handle multiple objects in annotations and metadata
lmcmicu Jun 20, 2021
a1e7285
pass thin tsv and expected rdf as command line arguments to prototype.py
lmcmicu Jun 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
MAKEFLAGS += --warn-undefined-variables
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := round-trip
.DELETE_ON_ERROR:
.SUFFIXES:

#args = --log --filter 'obo:CLO_0000001'
#args = --log --filter 'BFO:0000027'
#args = --log --filter 'OBI:0100061'

# round-trip: build/obi_core.tsv obi_core_no_trailing_ws.owl
round-trip: tests/thin.tsv tests/resources/example.rdf
tests/prototype.py $(args) $^
6 changes: 6 additions & 0 deletions tests/prefix.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
prefix base
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs http://www.w3.org/2000/01/rdf-schema#
xsd http://www.w3.org/2001/XMLSchema#
owl http://www.w3.org/2002/07/owl#
ex http://example.com/
Loading