Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: align DCAT namespace IRI to the correct one #3781

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ Similarly, a `ToCatalogTransformer` can convert from a JSON=LD structure to the

```
public class ToCatalogTransformer extends AbstractJsonLdTransformer<JsonObject, Catalog> {
private static final String DCAT_CATALOG = "http://www.w3.org/ns/dcat/Catalog";
private static final String DCAT_DATASET = "http://www.w3.org/ns/dcat/dataset";
private static final String DCAT_DISTRIBUTION = "http://www.w3.org/ns/dcat/distribution";
private static final String DCAT_DATA_SERVICE = "http://www.w3.org/ns/dcat/DataService";
private static final String DCAT_CATALOG = "http://www.w3.org/ns/dcat#Catalog";
private static final String DCAT_DATASET = "http://www.w3.org/ns/dcat#dataset";
private static final String DCAT_DISTRIBUTION = "http://www.w3.org/ns/dcat#distribution";
private static final String DCAT_DATA_SERVICE = "http://www.w3.org/ns/dcat#DataService";

public ToCatalogTransformer() {
super(JsonObject.class, Catalog.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ record CatalogSchema(
"@vocab": "https://w3id.org/edc/v0.0.1/ns/",
"dct": "https://purl.org/dc/terms/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"dcat": "https://www.w3.org/ns/dcat/",
"dcat": "http://www.w3.org/ns/dcat#",
"odrl": "http://www.w3.org/ns/odrl/2/",
"dspace": "https://w3id.org/dspace/v0.8/"
}
Expand Down Expand Up @@ -233,7 +233,7 @@ record DatasetSchema(
"@vocab": "https://w3id.org/edc/v0.0.1/ns/",
"dct": "https://purl.org/dc/terms/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"dcat": "https://www.w3.org/ns/dcat/",
"dcat": "http://www.w3.org/ns/dcat#",
"odrl": "http://www.w3.org/ns/odrl/2/",
"dspace": "https://w3id.org/dspace/v0.8/"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
*/
public interface Namespaces {

// ref. https://www.w3.org/TR/vocab-dcat-3/#normative-namespaces
String DCAT_PREFIX = "dcat";
String DCAT_SCHEMA = "https://www.w3.org/ns/dcat/";
String DCAT_SCHEMA = "http://www.w3.org/ns/dcat#";

String DCT_PREFIX = "dct";
String DCT_SCHEMA = "https://purl.org/dc/terms/";
Expand Down
Loading