Skip to content

Commit dd93352

Browse files
authored
Merge pull request #137 from casework/BugFix-Issue-132
Replace broken link with other `prov-constraints` aggregation
2 parents cf1c940 + 7aeb31c commit dd93352

4 files changed

Lines changed: 59 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The [tests](tests/) directory demonstrates the three standalone scripts run agai
4242
* `case_prov_dot` - This script takes as input one or more PROV-O graph files, and outputs a Dot render.
4343
* `case_prov_check` - This script takes as input one or more graph files, and reviews data for OWL consistency according to PROV-O (e.g. ensuring no one graph individual is a member of two PROV-O disjoint sets), and for breaks in chain of custody.
4444

45-
On using `case_prov_rdf.py` to create a PROV-O graph, it is possible to provide that graph to a PROV-O consumer, such as a [PROV-CONSTRAINTS](https://www.w3.org/TR/prov-constraints/) validator. This CASE project runs a Python package listed on the [W3C 2013 implementations report](https://www.w3.org/TR/2013/NOTE-prov-implementations-20130430/), [`prov-check`](https://github.com/pgroth/prov-check), as part of its sample output. For instance, the [CASE-Examples repository](https://github.com/casework/CASE-Examples) is analyzed [here](tests/CASE-Examples/examples/prov-constraints.log).
45+
On using `case_prov_rdf.py` to create a PROV-O graph, it is possible to provide that graph to a PROV-O consumer, such as a [PROV-CONSTRAINTS](https://www.w3.org/TR/prov-constraints/) validator. This CASE project runs a Python package listed on the [W3C 2013 implementations report](https://www.w3.org/TR/2013/NOTE-prov-implementations-20130430/), [`prov-check`](https://github.com/pgroth/prov-check), as part of its sample output. For instance, the [CASE website](https://github.com/casework/casework.github.io)'s examples are analyzed [here](tests/casework.github.io/examples/prov-constraints.log).
4646

4747
All of the demonstration rendering (to PROV-O and to SVG images) can be run by cloning this repository and running (optionally with `-j`):
4848

tests/casework.github.io/examples/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ clean_targets := $(foreach exdir,$(exdirs),clean-$(exdir))
2828

2929
all: \
3030
$(all_targets)
31+
$(MAKE) \
32+
--file postvisit.mk
3133

3234
all-%:
3335
$(MAKE) \
@@ -39,6 +41,9 @@ check: \
3941
<(ls */prov-constraints.log | while read x; do dirname $$x ; done) \
4042
<(cd $(examples_srcdir) ; ls */*.json | while read x; do dirname $$x ; done | sort | uniq) \
4143
|| (echo "ERROR:Makefile:The illustrations listed above do not have evaluation directories under $(top_srcdir)/tests/casework.github.io/examples." >&2 ; exit 1)
44+
$(MAKE) \
45+
--file postvisit.mk \
46+
check
4247

4348
check-%:
4449
$(MAKE) \
@@ -47,6 +52,9 @@ check-%:
4752

4853
clean: \
4954
$(clean_targets)
55+
@$(MAKE) \
56+
--file postvisit.mk \
57+
clean
5058

5159
clean-%:
5260
@$(MAKE) \
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/make -f
2+
3+
# Portions of this file contributed by NIST are governed by the
4+
# following statement:
5+
#
6+
# This software was developed at the National Institute of Standards
7+
# and Technology by employees of the Federal Government in the course
8+
# of their official duties. Pursuant to Title 17 Section 105 of the
9+
# United States Code, this software is not subject to copyright
10+
# protection within the United States. NIST assumes no responsibility
11+
# whatsoever for its use by other parties, and makes no guarantees,
12+
# expressed or implied, about its quality, reliability, or any other
13+
# characteristic.
14+
#
15+
# We would appreciate acknowledgement if the software is used.
16+
17+
SHELL := /bin/bash
18+
19+
top_srcdir := $(shell cd ../../.. ; pwd)
20+
21+
exdirs := $(shell find * -maxdepth 0 -type d | sort | egrep -v '^src$$')
22+
23+
ttl_files := $(foreach exdir,$(exdirs),$(exdir)/$(exdir)-prov.ttl)
24+
25+
all:
26+
27+
check: \
28+
prov-constraints.log
29+
30+
clean:
31+
@rm -f \
32+
_* \
33+
prov-constraints.log
34+
35+
prov-constraints.log: \
36+
$(top_srcdir)/dependencies/prov-check/provcheck/provconstraints.py \
37+
$(ttl_files)
38+
source $(top_srcdir)/tests/venv/bin/activate \
39+
&& python3 $(top_srcdir)/dependencies/prov-check/provcheck/provconstraints.py \
40+
--debug \
41+
$(ttl_files) \
42+
> _$@ \
43+
2>&1
44+
mv _$@ $@
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
asgard/asgard-prov.ttl True
2+
crossover_heist/crossover_heist-prov.ttl True
3+
crossover_wmd/crossover_wmd-prov.ttl True
4+
hardware_duplicator/hardware_duplicator-prov.ttl True
5+
owl_trafficking/owl_trafficking-prov.ttl True
6+
urgent_evidence/urgent_evidence-prov.ttl True

0 commit comments

Comments
 (0)