Skip to content

Commit

Permalink
Fix typo in connegp ontology prefix (#233)
Browse files Browse the repository at this point in the history
Replace typo across all instances in the codebase
  • Loading branch information
ashleysommer authored Jun 28, 2024
1 parent 45e8426 commit 212ac34
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README-Dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX altr-ext: <http://www.w3.org/ns/dx/conneg/altr-ext#>
PREFIX altr-ext: <http://www.w3.org/ns/dx/connegp/altr-ext#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX prez: <https://prez.dev/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
Expand Down
2 changes: 1 addition & 1 deletion prez/reference_data/prefixes/standard.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PREFIX sdoprof: <https://schema.org>
] .

[ vann:preferredNamespacePrefix "altr-ext" ;
vann:preferredNamespaceUri <http://www.w3.org/ns/dx/conneg/altr-ext#>
vann:preferredNamespaceUri <http://www.w3.org/ns/dx/connegp/altr-ext#>
] .

[ vann:preferredNamespacePrefix "exds" ;
Expand Down
2 changes: 1 addition & 1 deletion prez/reference_data/prez_ns.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

PREZ = Namespace("https://prez.dev/")
ONT = Namespace("https://prez.dev/ont/")
ALTREXT = Namespace("http://www.w3.org/ns/dx/conneg/altr-ext#")
ALTREXT = Namespace("http://www.w3.org/ns/dx/connegp/altr-ext#")
REG = Namespace("http://purl.org/linked-data/registry#")
2 changes: 1 addition & 1 deletion prez/reference_data/profiles/catprez_default_profiles.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX altr-ext: <http://www.w3.org/ns/dx/conneg/altr-ext#>
PREFIX altr-ext: <http://www.w3.org/ns/dx/connegp/altr-ext#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
Expand Down
2 changes: 1 addition & 1 deletion prez/reference_data/profiles/prez_default_profiles.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX altr-ext: <http://www.w3.org/ns/dx/conneg/altr-ext#>
PREFIX altr-ext: <http://www.w3.org/ns/dx/connegp/altr-ext#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX altr-ext: <http://www.w3.org/ns/dx/conneg/altr-ext#>
PREFIX altr-ext: <http://www.w3.org/ns/dx/connegp/altr-ext#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
Expand Down
2 changes: 1 addition & 1 deletion prez/reference_data/profiles/vocprez_default_profiles.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX altr-ext: <http://www.w3.org/ns/dx/conneg/altr-ext#>
PREFIX altr-ext: <http://www.w3.org/ns/dx/connegp/altr-ext#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
Expand Down
2 changes: 1 addition & 1 deletion prez/renderers/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async def return_profiles(
for profile in items
]
g = Graph(bind_namespaces="rdflib")
g.bind("altr-ext", Namespace("http://www.w3.org/ns/dx/conneg/altr-ext#"))
g.bind("altr-ext", Namespace("http://www.w3.org/ns/dx/connegp/altr-ext#"))
for q in queries:
g += profiles_graph_cache.query(q)
return await return_from_graph(
Expand Down
2 changes: 1 addition & 1 deletion prez/services/listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def listing_function(
listing_item.profile = prof_and_mt_info.profile

if prof_and_mt_info.profile == URIRef(
"http://www.w3.org/ns/dx/conneg/altr-ext#alt-profile"
"http://www.w3.org/ns/dx/connegp/altr-ext#alt-profile"
):
return await return_profiles(
classes=frozenset(listing_item.selected_class),
Expand Down
2 changes: 1 addition & 1 deletion prez/services/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def object_function(
selected_class=prof_and_mt_info.selected_class,
)
if prof_and_mt_info.profile == URIRef(
"http://www.w3.org/ns/dx/conneg/altr-ext#alt-profile"
"http://www.w3.org/ns/dx/connegp/altr-ext#alt-profile"
):
return await return_profiles(
classes=frozenset(object_item.selected_class),
Expand Down
4 changes: 2 additions & 2 deletions prez/sparql/objects_listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

log = logging.getLogger(__name__)

ALTREXT = Namespace("http://www.w3.org/ns/dx/conneg/altr-ext#")
ALTREXT = Namespace("http://www.w3.org/ns/dx/connegp/altr-ext#")
PREZ = Namespace("https://prez.dev/")


Expand Down Expand Up @@ -756,7 +756,7 @@ def select_profile_mediatype(
if requested_profile_token:
requested_profile_uri = get_uri_for_curie_id(requested_profile_token)
query = dedent(
f""" PREFIX altr-ext: <http://www.w3.org/ns/dx/conneg/altr-ext#>
f""" PREFIX altr-ext: <http://www.w3.org/ns/dx/connegp/altr-ext#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
Expand Down
2 changes: 1 addition & 1 deletion tests/data/profiles/remote_profile.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX altr-ext: <http://www.w3.org/ns/dx/conneg/altr-ext#>
PREFIX altr-ext: <http://www.w3.org/ns/dx/connegp/altr-ext#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
Expand Down

0 comments on commit 212ac34

Please sign in to comment.