Skip to content
Alpha: see what works today →
Menu

bridge:ConvertCall Convert call

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

No definition yet.

Type
owl:Class

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

PropertyValue typeHow manyWhen it is not met
bridge:documentbridge.shapes.ttl#NamedFile a sh:PropertyShapeexactly 1 An ask or convert call names exactly one bridge:document.
bridge:suppliedFactsbridge.shapes.ttl#NamedFile a sh:PropertyShapeat most 1 An ask or convert call names at most one bridge:suppliedFacts.
bridge:envelopesh:IRI a sh:PropertyShapeat most 1 An ask or convert call names at most one bridge:envelope, the IRI of the envelope its document is read in.
bridge:graphFormata sh:PropertyShape; in ( "turtle" "ntriples" )exactly 1 A describe or convert call carries exactly one bridge:graphFormat, the format the graph is returned in: turtle or ntriples.
bridge:expectedGraphsh:IRIat most 1 A convert call names at most one bridge:expectedGraph, the graph it must return, by IRI.
bridge:expectedFindingssh:IRIat most 1 A convert call names at most one bridge:expectedFindings, the findings it must return, by IRI: naming none, it must return none.
bridge:failurea sh:PropertyShape; in ( bridge:documentFailure bridge:factsFailure bridge:adapterFailure bridge:vocabularyFailure bridge:fileMissingFailure bridge:bridgeFailure )at most 1 A call names at most one bridge:failure, the kind it must fail with: one of bridge:documentFailure, bridge:factsFailure, bridge:adapterFailure, bridge:vocabularyFailure, bridge:fileMissingFailure, bridge:bridgeFailure.
bridge:asksForFindingsxsd:booleanat most 1 A convert call asks for the findings at most once, by an xsd:boolean.
bridge:asksForCensusxsd:booleanat most 1 A convert call asks for the census at most once, by an xsd:boolean.

On the whole node: closed true; ignoredProperties ( rdf:type ); xone ( [ path bridge:expectedGraph; minCount 1 ] [ path bridge:failure; minCount 1 ] ); sparql [ prefixes bridge.shapes.ttl; message "A convert call naming a bridge:failure names no bridge:expectedFindings."; select

SELECT $this ?value WHERE { $this bridge:failure ?kind ; bridge:expectedFindings ?value . }
]; sparql [ prefixes bridge.shapes.ttl; message "A convert call naming a bridge:expectedFindings asks for the findings, the census or both: asked for neither, it returns none."; select
SELECT $this ?value WHERE {
        $this bridge:expectedFindings ?value .
        FILTER NOT EXISTS { $this bridge:asksForFindings true }
        FILTER NOT EXISTS { $this bridge:asksForCensus true }
      }
] A convert call names exactly one of bridge:expectedGraph and bridge:failure.

Where it comes from and what uses it
Source
https://ns.cascadeprotocol.org/bridge/v1-draft#