Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test for optional subject/object form
- Loading branch information
Showing
4 changed files
with
46 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | ||
|
||
SELECT ?mbox ?name ?nick | ||
{ | ||
?x foaf:mbox ?mbox . | ||
OPTIONAL { ?x foaf:name ?name } . | ||
OPTIONAL { ?x foaf:nick ?nick } . | ||
OPTIONAL { ?mbox <http://example.org/provider> ?provider } . | ||
} |
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,24 @@ | ||
#! /bin/sh | ||
|
||
|
||
# test provenance recording by checking the content of the related repository | ||
# return 0 for success, otherwise 1 | ||
# | ||
# environment : | ||
# DYDRA_ACCOUNT : account name | ||
# DYDRA_URL : host http url | ||
# TEST_LIBRARY : support scripts | ||
|
||
source ${TEST_LIBRARY}/setup-script | ||
|
||
|
||
run-query jhacker/726-provenance ${CLEAR_QUERY} > result-$$.srj && \ | ||
test-result result-$$.srj provenance-1a-expected.srj && \ | ||
run-query jhacker/726-base provenance-1b.rq > result-$$.srj && \ | ||
test-result result-$$.srj provenance-1b-expected.srj && \ | ||
run-query jhacker/726-provenance ${COUNT_QUERY} > result-$$.srj && \ | ||
test-result result-$$.srj provenance-1c-expected.srj | ||
|
||
STATUS=$? | ||
exit $STATUS | ||
|
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 @@ | ||
{ "head": {}, "boolean": true } |
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,12 @@ | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
|
||
_:a foaf:mbox <mailto:alice@example.net> . | ||
_:a foaf:name 'Alice' . | ||
_:a foaf:nick 'WhoMe?' . | ||
|
||
_:b foaf:mbox <mailto:bert@example.net> . | ||
_:b foaf:name 'Bert' . | ||
|
||
_:e foaf:mbox <mailto:eve@example.net> . | ||
_:e foaf:nick 'DuckSoup' . | ||
<mailto:eve@example.net> <http://example.org/provider> "NSA" . |