bridge:NamingTest Naming test
https://ns.cascadeprotocol.org/bridge/v1-draft#NamingTest
A test of a Bridge offering bridge:sparql-1.1, where the action names a qt:query: evaluate it with ?input1 substituted by the first member of bridge:nameInputs, ?input2 by the second, and so on, each a simple literal, every ?inputN past the last member left unbound. It must have exactly one solution, whose ?name is bridge:expectedName, the same IRI or literal. An entry whose action names no qt:query is earl:inapplicable to a Bridge.
- Type
owl:Class
bridge.shapes.ttl#BridgeTest checks each bridge:LiftTest, bridge:SkeletonTest, bridge:NamingTest, bridge:BaseUrlNormalisationTest, bridge:BaseUrlRefusalTest, bridge:VersioningTest.
On the whole node: sparql [ prefixes bridge.shapes.ttl; message "A test of a Bridge is listed only in a manifest that names no bridge:adapter."; select
SELECT $this ?value WHERE {
?manifest mf:entries/rdf:rest*/rdf:first $this ;
bridge:adapter ?value .
} ]
bridge.shapes.ttl#BridgeTestResult checks each bridge:LiftTest, bridge:SkeletonTest, bridge:NamingTest, bridge:BaseUrlNormalisationTest, bridge:VersioningTest.
| Property | Value type | How many | When it is not met |
|---|---|---|---|
mf:result | exactly 1 | A test of a Bridge carries exactly one mf:result. |
bridge.shapes.ttl#NamingTest checks each bridge:NamingTest.
| Property | Value type | How many | When it is not met |
|---|---|---|---|
bridge:namingRule | sh:IRI | exactly 1 | A naming test names exactly one bridge:namingRule, the Cascade naming rule its inputs are named by, by IRI. |
mf:action | bridge.shapes.ttl#NamingAction | ||
mf:result | bridge.shapes.ttl#NamingResult |
On the whole node: or ( [ path ( mf:result bridge:canonicalContent ); maxCount 0 ] [ path ( mf:action bridge:input ); minCount 1 ] ) A naming test names a bridge:canonicalContent only beside a bridge:input.
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#