Skip to content
Alpha: see what works today →
Menu

bridge:LiftTest Lift test

https://ns.cascadeprotocol.org/bridge/v1-draft#LiftTest

A test of a Bridge offering bridge:sparql-1.1: lift bridge:input by the lift the action's bridge:sourceMediaType selects, with its document element, or its JSON value, as the lift root. The produced graph must be isomorphic to bridge:expectedGraph, blank nodes relabelled and IRIs and literals exact. No mapping runs, and nothing is removed from either side.

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.

PropertyValue typeHow manyWhen it is not met
mf:resultexactly 1 A test of a Bridge carries exactly one mf:result.

bridge.shapes.ttl#LiftTest checks each bridge:LiftTest.

PropertyValue typeHow manyWhen it is not met
mf:actionbridge.shapes.ttl#LiftAction
mf:resultbridge.shapes.ttl#LiftResult

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.

PropertyValue typeHow manyWhen it is not met
mf:namexsd: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:actionsh:BlankNodeOrIRIexactly 1 A test carries exactly one mf:action.
bridge:testsUnaccountedSourcePathxsd: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#