diff --git a/prez/reference_data/profiles/ogc_records_profile.ttl b/prez/reference_data/profiles/ogc_records_profile.ttl index 6ca9c73b..81f7eafd 100644 --- a/prez/reference_data/profiles/ogc_records_profile.ttl +++ b/prez/reference_data/profiles/ogc_records_profile.ttl @@ -23,6 +23,12 @@ prez:OGCRecordsProfile dcterms:title "OGC Profile" ; altr-ext:constrainsClass prez:CatPrez ; altr-ext:hasDefaultResourceFormat "text/anot+turtle" ; + altr-ext:hasResourceFormat + "application/json" , + "application/ld+json" , + "application/rdf+xml" , + "text/anot+turtle" , + "text/turtle" ; altr-ext:hasNodeShape [ a sh:NodeShape ; sh:targetClass dcat:Catalog , dcat:Resource , skos:Concept , geo:Feature , geo:FeatureCollection diff --git a/prez/reference_data/profiles/prez_default_profiles.ttl b/prez/reference_data/profiles/prez_default_profiles.ttl index ec515109..479bdcac 100644 --- a/prez/reference_data/profiles/prez_default_profiles.ttl +++ b/prez/reference_data/profiles/prez_default_profiles.ttl @@ -19,8 +19,14 @@ PREFIX xsd: a prof:Profile ; dcterms:identifier "prez"^^xsd:token ; dcterms:description "A profile for the Prez Linked Data API" ; - skos:prefLabel "Prez profile" ; + dcterms:title "Prez profile" ; altr-ext:hasDefaultResourceFormat "text/anot+turtle" ; + altr-ext:hasResourceFormat + "application/json" , + "application/ld+json" , + "application/rdf+xml" , + "text/anot+turtle" , + "text/turtle" ; altr-ext:hasNodeShape [ a sh:NodeShape ; sh:targetClass prez:SPARQLQuery ; diff --git a/tests/test_endpoints_profiles.py b/tests/test_endpoints_profiles.py index f7501f5c..c237c222 100755 --- a/tests/test_endpoints_profiles.py +++ b/tests/test_endpoints_profiles.py @@ -3,7 +3,7 @@ def test_profile(client_no_override): - r = client_no_override.get("/profiles") + r = client_no_override.get("/profiles?per_page=50") g = Graph().parse(data=r.text) assert (URIRef("https://prez.dev/profile/prez"), RDF.type, PROF.Profile) in g