-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move
EARL
and RDFT
namespaces to separate files
This patch moves the `RDFT` and `EARL` namespaces into their own files. This is to make the test code a bit cleaner to work with. Doing this in preperation for rewrite of the RDF/XML test suite.
- Loading branch information
Showing
10 changed files
with
99 additions
and
77 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from rdflib.namespace import DefinedNamespace, Namespace | ||
from rdflib.term import URIRef | ||
|
||
|
||
class EARL(DefinedNamespace): | ||
_fail = True | ||
_NS = Namespace("http://www.w3.org/ns/earl#") | ||
|
||
assertedBy: URIRef # assertor of an assertion | ||
Assertion: URIRef # a statement that embodies the results of a test | ||
Assertor: URIRef # an entity such as a person, a software tool, an organization, or any other grouping that carries out a test collectively | ||
automatic: URIRef # where the test was carried out automatically by the software tool and without any human intervention | ||
CannotTell: URIRef # the class of outcomes to denote an undetermined outcome | ||
cantTell: URIRef # it is unclear if the subject passed or failed the test | ||
failed: URIRef # the subject failed the test | ||
Fail: URIRef # the class of outcomes to denote failing a test | ||
inapplicable: URIRef # the test is not applicable to the subject | ||
info: URIRef # additional warnings or error messages in a human-readable form | ||
mainAssertor: URIRef # assertor that is primarily responsible for performing the test | ||
manual: URIRef # where the test was carried out by human evaluators | ||
mode: URIRef # mode in which the test was performed | ||
NotApplicable: URIRef # the class of outcomes to denote the test is not applicable | ||
NotTested: URIRef # the class of outcomes to denote the test has not been carried out | ||
outcome: URIRef # outcome of performing the test | ||
OutcomeValue: URIRef # a discrete value that describes a resulting condition from carrying out the test | ||
passed: URIRef # the subject passed the test | ||
Pass: URIRef # the class of outcomes to denote passing a test | ||
pointer: URIRef # location within a test subject that are most relevant to a test result | ||
result: URIRef # result of an assertion | ||
semiAuto: URIRef # where the test was partially carried out by software tools, but where human input or judgment was still required to decide or help decide the outcome of the test | ||
Software: URIRef # any piece of software such as an authoring tool, browser, or evaluation tool | ||
subject: URIRef # test subject of an assertion | ||
TestCase: URIRef # an atomic test, usually one that is a partial test for a requirement | ||
TestCriterion: URIRef # a testable statement, usually one that can be passed or failed | ||
TestMode: URIRef # describes how a test was carried out | ||
TestRequirement: URIRef # a higher-level requirement that is tested by executing one or more sub-tests | ||
TestResult: URIRef # the actual result of performing the test | ||
TestSubject: URIRef # the class of things that have been tested against some test criterion | ||
test: URIRef # test criterion of an assertion | ||
undisclosed: URIRef # where the exact testing process is undisclosed | ||
unknownMode: URIRef # where the testing process is unknown or undetermined | ||
untested: URIRef # the test has not been carried out |
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,38 @@ | ||
from rdflib.namespace import DefinedNamespace, Namespace | ||
from rdflib.term import URIRef | ||
|
||
|
||
class RDFT(DefinedNamespace): | ||
""" | ||
Described at <https://www.w3.org/ns/rdftest#>. | ||
Generated from <https://www.w3.org/ns/rdftest.ttl>. | ||
""" | ||
|
||
_fail = True | ||
_NS = Namespace("http://www.w3.org/ns/rdftest#") | ||
|
||
approval: URIRef # Approval status of a test. | ||
Approval: URIRef # The superclass of all test approval statuses. | ||
Approved: URIRef # Indicates that a test is approved. | ||
Proposed: URIRef # Indicates that a test is proposed, but not approved. | ||
Rejected: URIRef # Indicates that a test is not approved. | ||
TestEval: URIRef # Superclass of all RDF Evaluation Tests. | ||
TestNQuadsNegativeSyntax: URIRef # A negative N-Quads syntax test. | ||
TestNQuadsPositiveSyntax: URIRef # A positive N-Quads syntax test. | ||
TestNTriplesNegativeSyntax: URIRef # A negative N-Triples syntax test. | ||
TestNTriplesPositiveSyntax: URIRef # A positive N-Triples syntax test. | ||
TestSyntax: URIRef # Superclass of all RDF Syntax Tests. | ||
TestTrigEval: URIRef # A positive TriG evaluation test. | ||
TestTrigNegativeEval: URIRef # A negative TriG evaluation test. | ||
TestTriGNegativeSyntax: URIRef # A negative TriG syntax test. | ||
TestTriGPositiveSyntax: URIRef # A positive TriG syntax test. | ||
TestTurtleEval: URIRef # A positive Turtle evaluation test. | ||
TestTurtleNegativeEval: URIRef # A negative Turtle evaluation test. | ||
TestTurtleNegativeSyntax: URIRef # A negative Turtle syntax test. | ||
TestTurtlePositiveSyntax: URIRef # A positive Turtle syntax test. | ||
Test: URIRef # Superclass of all RDF Tests. | ||
TestXMLNegativeSyntax: URIRef # A negative RDF/XML syntax test. | ||
XMLEval: URIRef # A positive RDF/XML evaluation test. | ||
|
||
TestTrigPositiveSyntax: URIRef | ||
TestTrigNegativeSyntax: URIRef |
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,7 @@ | ||
from ._EARL import EARL | ||
from ._RDFT import RDFT | ||
|
||
__all__ = [ | ||
"EARL", | ||
"RDFT", | ||
] |