Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .changeset/perky-ideas-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"api-tuner": patch
---

Tests without `rdfs:label` would be incorrectly skipped

17 changes: 14 additions & 3 deletions rules/formula.n3
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,21 @@ prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix string: <http://www.w3.org/2000/10/swap/string#>

{
?test a earl:TestCase ; tuner:formula ?formula .
{
?test a earl:TestCase ; tuner:formula ?formula .
} log:callWithOptional {
?test rdfs:label ?text .
} .

# Choose text to match against: prefer rdfs:label, otherwise the term's URI form
{ ?test rdfs:label ?text . } log:callWithOptional { ?test log:uri ?text . } .
(
{
?text log:bound false
}
{
?test log:uri ?text .
}
true
) log:ifThenElseIn [] .

(
{
Expand Down
Loading