Skip to content

Commit

Permalink
Fix profiles so tests pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
recalcitrantsupplant committed Aug 14, 2024
1 parent 5167225 commit 2a0db4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions prez/reference_data/profiles/ogc_records_profile.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion prez/reference_data/profiles/prez_default_profiles.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_endpoints_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2a0db4a

Please sign in to comment.