@prefix aipsm: <https://aips.kivanura.org/spec/aips/marketplace/0.1#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# Structural SHACL for the marketplace projection. Conditional family/currentness
# constraints are also enforced by the JSON Schema conformance layer.

aipsm:MarketplaceListingShape a sh:NodeShape ;
  sh:targetClass aipsm:MarketplaceListing ;
  sh:property [ sh:path aipsm:listingId ; sh:minCount 1 ; sh:maxCount 1 ] ;
  sh:property [ sh:path aipsm:productId ; sh:minCount 1 ; sh:maxCount 1 ] ;
  sh:property [ sh:path aipsm:productVersion ; sh:minCount 1 ; sh:maxCount 1 ] ;
  sh:property [ sh:path aipsm:listingKind ; sh:minCount 1 ; sh:maxCount 1 ] ;
  sh:property [ sh:path aipsm:listingStatus ; sh:minCount 1 ; sh:maxCount 1 ] ;
  sh:property [ sh:path aipsm:trustSummary ; sh:minCount 1 ; sh:maxCount 1 ] ;
  sh:property [ sh:path aipsm:consumption ; sh:minCount 1 ; sh:maxCount 1 ] .

aipsm:ConsumptionPortShape a sh:NodeShape ;
  sh:targetClass aipsm:ConsumptionPort ;
  sh:property [ sh:path aipsm:portId ; sh:minCount 1 ; sh:maxCount 1 ] ;
  sh:property [ sh:path aipsm:portType ; sh:minCount 1 ; sh:maxCount 1 ] .
