PREFIX dcmitype: <http://purl.org/dc/dcmitype/>
PREFIX dcterms:  <http://purl.org/dc/terms/>
PREFIX doap:     <http://usefulinc.com/ns/doap#>
PREFIX foaf:     <http://xmlns.com/foaf/0.1/>
PREFIX geo:      <http://www.opengis.net/ont/geosparql#>
PREFIX hydra:    <http://www.w3.org/ns/hydra/core#>
PREFIX ldp:      <http://www.w3.org/ns/ldp#>
PREFIX prov:     <http://www.w3.org/ns/prov#>
PREFIX rdfs:     <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sh:       <http://www.w3.org/ns/shacl#>
PREFIX skos:     <http://www.w3.org/2004/02/skos/core#>
PREFIX void:     <http://rdfs.org/ns/void#>

<#panoramaxwrap>  a   prov:SoftwareAgent , doap:Project;
        rdfs:label    "Linked Panoramax (panoramaxwrap)";
        doap:release  [ a              doap:Version;
                        doap:revision  "1.0.0-SNAPSHOT+346a55b"
                      ];
        foaf:page     <.> .

<#dataset>  a                 void:Dataset;
        rdfs:comment          "A live view of the Panoramax federation's metacatalog (a STAC API), not a copy: pictures with their detected boxes, sequences and producer accounts by UUID, and box searches that are complete below their limit."@en;
        dcterms:license       <https://creativecommons.org/licenses/by-sa/4.0/>;
        dcterms:publisher     <https://panoramax.fr/>;
        dcterms:rights        "This description: CC BY-SA 4.0. The pictures and their metadata are under the licence each document names per picture (CC BY-SA 4.0, Licence Ouverte 2.0 or CC0, set by the instance hosting it)."@en;
        dcterms:source        <https://api.panoramax.xyz/api/docs/swagger>;
        dcterms:title         "Linked Data view of Panoramax street-level pictures"@en;
        void:class            <vocab#Panorama> , <vocab#FlatPicture>;
        void:vocabulary       <vocab#>;
        prov:wasAttributedTo  <#panoramaxwrap> .

<>      a                ldp:BasicContainer;
        hydra:operation  [ a                     hydra:Operation;
                           hydra:method          "GET";
                           hydra:possibleStatus  [ a                 hydra:Status;
                                                   hydra:statusCode  200
                                                 ];
                           hydra:possibleStatus  [ a                 hydra:Status;
                                                   hydra:statusCode  406
                                                 ];
                           hydra:possibleStatus  [ a                 hydra:Status;
                                                   hydra:statusCode  304
                                                 ];
                           hydra:returnsHeader   "ETag" , "Link" , "Vary" , "Cache-Control" , "Last-Modified"
                         ];
        hydra:search     [ a                             hydra:IriTemplate;
                           rdfs:comment                  "The pictures geo:sfIntersects a WGS84 box: each picture's point in the box, a point on an edge included, as upstream's STAC search tests it. Each member is geo:sfIntersects the query <…#id>. Upstream's bound is handed through: one upstream call with limit; the answer says whether upstream had more (vocab:complete, the Panoramax-Complete header); there are no pages. Order: capture time, then id. .json: the linkset (RFC 9264), an item per picture's own .json; .geojson: the pictures inline, a GeoJSON FeatureCollection that is also JSON-LD.";
                           hydra:mapping                 [ a               hydra:IriTemplateMapping;
                                                           rdfs:comment    "Representation as a suffix (.ttl, .nt, .rdf, .jsonld, .html; .json: the linkset; .geojson: the features inline); omit it to negotiate with the Accept header.";
                                                           hydra:required  false;
                                                           hydra:variable  "format";
                                                           sh:pattern      "^(ttl|nt|rdf|jsonld|html|json|geojson)$"
                                                         ];
                           hydra:mapping                 [ a               hydra:IriTemplateMapping;
                                                           rdfs:comment    "How many pictures upstream returns at most; default 100, at most 10000 (this wrapper's cap; upstream has none).";
                                                           hydra:property  hydra:limit;
                                                           hydra:required  false;
                                                           hydra:variable  "limit";
                                                           sh:pattern      "^[1-9][0-9]*$"
                                                         ];
                           hydra:mapping                 [ a               hydra:IriTemplateMapping;
                                                           rdfs:comment    "Capture time: an RFC 3339 instant, or an interval start/end with .. for an open end (STAC's datetime). Omitted, any time.";
                                                           hydra:required  false;
                                                           hydra:variable  "datetime";
                                                           sh:pattern      "^[0-9TZ:.+-]+(/[0-9TZ:.+-]*|/\\.\\.)?$|^\\.\\./.+$"
                                                         ];
                           hydra:mapping                 [ a               hydra:IriTemplateMapping;
                                                           rdfs:comment    "minLon,minLat,maxLon,maxLat (W,S,E,N) in WGS84 degrees, lon first as in CRS84. No hydra:property: the family's term for this string is not defined yet; the query's geo:hasBoundingBox is the box as a geometry.";
                                                           skos:example    "11.08,49.4485,11.081,49.449";
                                                           hydra:required  true;
                                                           hydra:variable  "bbox";
                                                           sh:pattern      "^-?[0-9]+(\\.[0-9]+)?(,-?[0-9]+(\\.[0-9]+)?){3}$"
                                                         ];
                           hydra:memberAssertion         [ rdfs:comment    "Each member is the subject, the query <…#id> the object.";
                                                           hydra:property  geo:sfIntersects
                                                         ];
                           hydra:operation               [ a                     hydra:Operation;
                                                           rdfs:comment          "400: a malformed or out-of-range bbox, datetime or limit, or an unknown parameter.";
                                                           hydra:method          "GET";
                                                           hydra:possibleStatus  [ a                 hydra:Status;
                                                                                   hydra:statusCode  304
                                                                                 ];
                                                           hydra:possibleStatus  [ a                 hydra:Status;
                                                                                   hydra:statusCode  406
                                                                                 ];
                                                           hydra:possibleStatus  [ a                 hydra:Status;
                                                                                   hydra:statusCode  200
                                                                                 ];
                                                           hydra:possibleStatus  [ a                 hydra:Status;
                                                                                   hydra:statusCode  502
                                                                                 ];
                                                           hydra:possibleStatus  [ a                 hydra:Status;
                                                                                   hydra:statusCode  503
                                                                                 ];
                                                           hydra:possibleStatus  [ a                 hydra:Status;
                                                                                   hydra:statusCode  400
                                                                                 ];
                                                           hydra:returns         hydra:Collection;
                                                           hydra:returnsHeader   "Link" , "Vary" , "Cache-Control" , "ETag" , "Last-Modified"
                                                         ];
                           hydra:template                "intersects{.format}{?bbox,datetime,limit}";
                           hydra:variableRepresentation  hydra:BasicRepresentation
                         ];
        ldp:contains     <picture/> , <sequence/> , <user/> , <vocab> , <licences> .
