-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e9d64b
commit 88b37b5
Showing
6 changed files
with
38 additions
and
22 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
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 @@ | ||
docker run --rm --env=ADMIN_PASSWORD=admin --volume=fuseki/configuration:/fuseki-base/configuration --volume=fuseki/databases:/fuseki-base/databases -p 3030:3030 --name mani secoresearch/fuseki:5.1.0 |
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 |
---|---|---|
@@ -1,9 +1,24 @@ | ||
from manifest.loader import load | ||
from pathlib import Path | ||
from rdflib import Dataset, URIRef | ||
|
||
|
||
def test_load_01(): | ||
manifest = Path(__file__).parent / "demo-vocabs" / "manifest.ttl" | ||
results_file = Path(__file__).parent / "results.trig" | ||
print() | ||
print(load(manifest, sparql_endpoint=None, export_quads_file=results_file)) | ||
|
||
load(manifest, sparql_endpoint=None, export_quads_file=results_file) | ||
|
||
# load the resultant Dataset to test it | ||
d = Dataset() | ||
d.parse(results_file, format="trig") | ||
|
||
graph_ids = [x.identifier for x in d.graphs()] | ||
|
||
assert URIRef("https://example.com/demo-vocabs-catalogue") in graph_ids | ||
assert URIRef("https://example.com/demo-vocabs/image-test") in graph_ids | ||
assert URIRef("https://example.com/demo-vocabs/language-test") in graph_ids | ||
assert URIRef("http://background") in graph_ids | ||
assert URIRef("https://olis.dev/SystemGraph") in graph_ids | ||
|
||
Path(results_file).unlink() |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,12 +3,13 @@ name = "prez.dev" | |
version = "0.1.0" | ||
description = "" | ||
authors = ["Nicholas Car <[email protected]>"] | ||
package-mode = false | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
mkdocs-material = "^8.3.9" | ||
pyshacl = "^0.29.0" | ||
kurrawong = {path = "/Users/nick/work/kurrawong/kurrawong-python", develop = true} | ||
kurrawong = {path = "/home/nick/work/kurrawong/kurrawong-python", develop = true} | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
|