bridge:LibraryTest Library test
https://ns.cascadeprotocol.org/bridge/v1-draft#LibraryTest
A test of a Bridge's library: make each call the mf:action lists, in order, a bridge:AskCall or bridge:ConvertCall on the adapter the latest successful bridge:LoadCall before it returned. A call naming a bridge:failure must fail with that kind; one naming a bridge:missingFile must name the map it is missing from and its path, that map's bridge:iri followed by the path being the bridge:missingFile. Any other call must not fail, and: a graph must be isomorphic to bridge:expectedGraph (blank nodes relabelled, IRIs and literals exact), a converted one after every triple whose subject is the prov:agent of a prov:qualifiedAssociation that has a prov:hadPlan, the Bridge's release, is removed from both sides; a conversion's findings must hold, for each finding of bridge:expectedFindings, one finding of its oa:hasSource and oa:hasBody, and no other, and none where the call names no bridge:expectedFindings; an answer must be bridge:expectedAnswer; a report, with the adapter's test manifest read at the adapter map's bridge:iri, must have no fault engine/faults-of-a-report.rq finds and name every entry under that IRI. An expected file inside an adapter map's bridge:directory is read at that map's bridge:iri followed by its path there. Nothing a call returns names a file: IRI.
- Type
owl:Class
bridge.shapes.ttl#LibraryTest checks each bridge:LibraryTest.
| Property | Value type | How many | When it is not met |
|---|---|---|---|
( mf:action [ zeroOrMorePath rdf:rest ] rdf:first ) | bridge.shapes.ttl#LibraryCall | at least 1 | The action of a library test is a list of at least one call, each a blank node typed with exactly one of bridge:DescribeCall, bridge:LoadCall, bridge:AskCall, bridge:ConvertCall, bridge:TestCall. |
mf:result | at most 0 | A library test has no mf:result: each call carries what it must return. |
On the whole node: sparql [ prefixes bridge.shapes.ttl; message "A bridge:AskCall or bridge:ConvertCall comes after a bridge:LoadCall in its library test's list of calls."; select
SELECT $this ?value WHERE {
$this mf:action ?calls .
?calls rdf:rest* ?at .
?at rdf:first ?value .
?value a ?type .
FILTER (?type IN (bridge:AskCall, bridge:ConvertCall))
FILTER NOT EXISTS {
?calls rdf:rest* ?earlier .
?earlier rdf:rest+ ?at ; rdf:first/a bridge:LoadCall .
}
} ]
bridge.shapes.ttl#Test checks each bridge:IsomorphicConversionTest, bridge:InputOnlyTest, bridge:DatasetCompletionTest, bridge:LiftTest, bridge:SkeletonTest, bridge:NamingTest, bridge:BaseUrlNormalisationTest, bridge:BaseUrlRefusalTest, bridge:VersioningTest, bridge:IdentityRelationTest, bridge:LibraryTest.
| Property | Value type | How many | When it is not met |
|---|---|---|---|
mf:name | xsd:string pattern "^[A-Za-z0-9][A-Za-z0-9_.-]*$" | exactly 1 | A test carries exactly one mf:name, the id that is also its fragment IRI. |
mf:action | sh:BlankNodeOrIRI | exactly 1 | A test carries exactly one mf:action. |
bridge:testsUnaccountedSourcePath | xsd:string | A test names each path it tests by bridge:testsUnaccountedSourcePath, an xsd:string. |
On the whole node: nodeKind sh:IRI
Where it comes from and what uses it
- Subclass of
mf:ManifestEntry- Source
https://ns.cascadeprotocol.org/bridge/v1-draft#