-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from DerwenAI/morph-kgc
Implement materialize for morph-kgc --- WIP
- Loading branch information
Showing
28 changed files
with
670 additions
and
322 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 |
---|---|---|
|
@@ -24,6 +24,4 @@ jobs: | |
run: docker logs kglab-notebooks | ||
|
||
- uses: pre-commit/[email protected] | ||
- name: Test all notebooks in the examples/ folder can run | ||
run: | | ||
docker exec -i kglab-notebooks bash -c 'pip install pytest nbmake && pytest --nbmake work/examples/*.ipynb' | ||
- name: TODO we no longer want to test notebooks, run unit test suite instead |
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
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
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 @@ | ||
# working on defining RML mappings here # |
Binary file not shown.
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,63 @@ | ||
@prefix rr: <http://www.w3.org/ns/r2rml#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix ex: <http://example.com/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@base <http://example.com/base/> . | ||
|
||
<TriplesMap1> | ||
a rr:TriplesMap; | ||
|
||
rr:logicalTable [ rr:tableName "Student"; ] ; | ||
|
||
rr:subjectMap [ | ||
rr:template "http://example.com/student/{ID}"; | ||
rr:class ex:Student; | ||
]; | ||
|
||
rr:predicateObjectMap | ||
[ | ||
rr:predicate ex:firstName ; | ||
rr:objectMap [ rr:column "FirstName" ] | ||
]; | ||
|
||
rr:predicateObjectMap | ||
[ | ||
rr:predicate ex:lastName ; | ||
rr:objectMap [ rr:column "LastName" ] | ||
] | ||
. | ||
|
||
<TriplesMap2> | ||
a rr:TriplesMap; | ||
|
||
rr:logicalTable [ rr:tableName "Sport"; ] ; | ||
|
||
rr:subjectMap [ | ||
rr:template "http://example.com/sport/{ID}"; | ||
rr:class ex:Sport; | ||
]; | ||
|
||
rr:predicateObjectMap | ||
[ | ||
rr:predicate ex:id ; | ||
rr:objectMap [ rr:column "ID"; ] | ||
]; | ||
|
||
rr:predicateObjectMap | ||
[ | ||
rr:predicate ex:description ; | ||
rr:objectMap [ rr:column "Description" ] | ||
] | ||
. | ||
|
||
<LinkMap_1_2> | ||
a rr:TriplesMap; | ||
|
||
rr:logicalTable [ rr:tableName "Student_Sport" ]; | ||
|
||
rr:subjectMap [ rr:template "http://example.com/student/{ID_Student}" ]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate ex:plays ; | ||
rr:objectMap [ rr:template "http://example.com/sport/{ID_Sport}" ]; | ||
]. |
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
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
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
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
Oops, something went wrong.