Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
dfdb146
WIP: Add bootstrapping from fixtures
MarekSuchanek Sep 22, 2025
6391176
rename package boostrap to bootstrap
dennisvang Sep 23, 2025
b41a40e
Switch to Spring Data Populators
MarekSuchanek Oct 15, 2025
5fe8fcb
add autogenerated license text
dennisvang Oct 17, 2025
cde6294
remove unused import
dennisvang Oct 17, 2025
1d24998
move fixtures dir from src/main/resources into project root
dennisvang Oct 17, 2025
9a5c110
wire BootstrapProperties into BootstrapConfig
dennisvang Oct 17, 2025
44aea3b
get fixtures from dir specified in bootstrap.db-fixtures-path
dennisvang Oct 17, 2025
9706c09
copy db fixtures dir into docker image
dennisvang Oct 17, 2025
52e72f0
add some todos w.r.t. rdf data dir
dennisvang Oct 17, 2025
9779545
use bootstrap.enabled property in populator
dennisvang Oct 22, 2025
48a8758
add some bootstrap logging
dennisvang Oct 22, 2025
a1ddea2
remove bootstrap.enabled from application.yml
dennisvang Oct 22, 2025
1e050f6
rename dbFixturesPath property to dbFixturesDir
dennisvang Oct 22, 2025
06084a2
add instructions to BootstrapConfig javadoc
dennisvang Oct 22, 2025
eef76db
fix checkstyle issues
dennisvang Oct 24, 2025
dda23fb
Merge pull request #784 from FAIRDataTeam/proposal/db-fixtures-path
dennisvang Oct 27, 2025
47a7119
remove files and variables related to RDF bootstrap
dennisvang Oct 27, 2025
9eeb9ac
Polish code based on reviews
MarekSuchanek Nov 9, 2025
ca929b4
Unify SHACL shapes indentation
MarekSuchanek Nov 9, 2025
1bc1828
Use JSON fixtures instead of SQL migrations in development profile (#…
dennisvang Nov 10, 2025
042c070
Add history for relational database fixtures (#797)
dennisvang Nov 10, 2025
d7a6399
Merge branch 'develop' into feature/634-boostrapping-fdp
dennisvang Nov 12, 2025
ce5b29b
Enable loading relational db fixtures from multiple directories (#793)
dennisvang Nov 13, 2025
6c62446
Add missing javadoc and populator tests
MarekSuchanek Nov 30, 2025
57cedda
update BootstrapConfig javadoc
dennisvang Dec 1, 2025
3d28644
remove data migrations from src/test/resources/test/db
dennisvang Nov 13, 2025
6ab040d
remove reference to test data migrations from test config
dennisvang Nov 13, 2025
ac0e0ae
explicitly enable bootstrap in test config
dennisvang Nov 13, 2025
d5915b1
add test-fixtures location to bootstrap config
dennisvang Nov 13, 2025
a86092a
rename 'db-fixtures-dirs' property to 'locations'
dennisvang Nov 14, 2025
f5abb80
rename fixturesDir loop variable to location
dennisvang Nov 14, 2025
4618d91
remove 'file:' prefix from fixture location pattern
dennisvang Nov 14, 2025
e647d94
clarify RepositoriesPopulatedEvent log message
dennisvang Nov 14, 2025
049eeb2
Revert "remove data migrations from src/test/resources/test/db"
dennisvang Nov 14, 2025
f3e49cb
replace V0001.1__dev-data-users.sql test data migration by json fixtu…
dennisvang Nov 14, 2025
caddb3d
cherry-pick: Make test logging config easier to use (#806)
dennisvang Nov 14, 2025
d14ce0f
adapt bootstrap.locations for DatabaseBootstrapTests
dennisvang Dec 8, 2025
a1e6c8c
re-populate db from fixtures after flyway clean in WebIntegrationTest…
dennisvang Dec 8, 2025
636c38c
delete V0001.2__dev-data-schemas.sql because it is covered by the def…
dennisvang Dec 8, 2025
1aa0b16
delete V0001.3__dev-data-rds.sql because it is covered by the 03xx fi…
dennisvang Dec 8, 2025
79ec86f
delete V0001.4__dev-data-membership.sql because it is covered by the …
dennisvang Dec 8, 2025
ec5711a
replace V0001.5__dev-settings.sql by 0500_test-settings.json
dennisvang Dec 8, 2025
883e341
replace V0001.6__test-schemas.sql by 0600_test-schemas.json
dennisvang Dec 8, 2025
e067b09
allow full ant-style location patterns for populator resources
dennisvang Dec 9, 2025
10e7a18
adapt DatabaseBootstrapTests to use the default fixtures
dennisvang Dec 9, 2025
86225f2
simplify resource location pattern for Windows compatibility
dennisvang Dec 9, 2025
0dd2776
catch all exceptions in RdfMetadataMigration.runMigration (dev only)
dennisvang Dec 10, 2025
a531516
fix test data description to match user account uuid
dennisvang Dec 10, 2025
2493791
modify testDuplicateIdEntityOverwriteBootstrap and corresponding fixt…
dennisvang Dec 10, 2025
ce810ea
adapt search/query/saved test expectations to updated test data
dennisvang Dec 10, 2025
79cde97
revert default user emails from example.org to example.com
dennisvang Dec 10, 2025
65f641f
adapt order of test users to match the original expectation
dennisvang Dec 10, 2025
2341d09
repopulate test database after flyway.clean in ResourceDefinitionCach…
dennisvang Dec 10, 2025
a3c18ec
Merge pull request #802 from FAIRDataTeam/proposal/634-remove-sql-tes…
dennisvang Dec 16, 2025
5f8fd38
Handle optionals in MembershipService (#820)
dennisvang Dec 19, 2025
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ USER spring:spring
WORKDIR /fdp

COPY --from=builder /builder/target/fdp-spring-boot.jar /fdp/app.jar
COPY --from=builder /builder/fixtures /fdp/fixtures

ENTRYPOINT ["java", "-jar", "app.jar"]
33 changes: 33 additions & 0 deletions fixtures/0010_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[
{
"_class": "org.fairdatapoint.entity.settings.Settings",
"uuid": "00000000-0000-0000-0000-000000000000",
"appTitle": "FAIR Data Point",
"appSubtitle": "Metadata for Machines",
"pingEnabled": true,
"pingEndpoints": [
"https://home.fairdatapoint.org"
],
"autocompleteSearchNamespace": true
},
{
"_class": "org.fairdatapoint.entity.settings.SettingsMetric",
"uuid": "8435491b-c16c-4457-ae94-e0f4128603d5",
"settings": {
"uuid": "00000000-0000-0000-0000-000000000000"
},
"metricUri": "https://purl.org/fair-metrics/FM_F1A",
"resourceUri": "https://www.ietf.org/rfc/rfc3986.txt",
"orderPriority": 0
},
{
"_class": "org.fairdatapoint.entity.settings.SettingsMetric",
"uuid": "af93d36a-0af0-4054-8c00-2675d460b231",
"settings": {
"uuid": "00000000-0000-0000-0000-000000000000"
},
"metricUri": "https://purl.org/fair-metrics/FM_A1.1",
"resourceUri": "https://www.wikidata.org/wiki/Q8777",
"orderPriority": 0
}
]
20 changes: 20 additions & 0 deletions fixtures/0100_user-accounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"_class" : "org.fairdatapoint.entity.user.UserAccount",
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9",
"firstName": "Albert",
"lastName": "Einstein",
"email": "[email protected]",
"passwordHash": "$2a$10$hZF1abbZ48Tf.3RndC9W6OlDt6gnBoD/2HbzJayTs6be7d.5DbpnW",
"role": "ADMIN"
},
{
"_class" : "org.fairdatapoint.entity.user.UserAccount",
"uuid": "b5b92c69-5ed9-4054-954d-0121c29b6800",
"firstName": "Nikola",
"lastName": "Tesla",
"email": "[email protected]",
"passwordHash": "$2a$10$tMbZUZg9AbYL514R.hZ0tuzvfZJR5NQhSVeJPTQhNwPf6gv/cvrna",
"role": "USER"
}
]
10 changes: 10 additions & 0 deletions fixtures/0110_api-keys.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"_class" : "org.fairdatapoint.entity.apikey.ApiKey",
"uuid": "761aa902-8a0a-4a19-9c81-4e106c579b29",
"token": "example-token",
"userAccount": {
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9"
}
}
]
15 changes: 15 additions & 0 deletions fixtures/0120_saved-queries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"_class" : "org.fairdatapoint.entity.search.SearchSavedQuery",
"uuid": "e5e16561-97db-4518-a41e-2cc8736ec06f",
"name": "All datasets",
"description": "Quickly query all datasets (DCAT)",
"type": "PUBLIC",
"varPrefixes": "PREFIX dcat: <http://www.w3.org/ns/dcat#>",
"varGraphPattern": "?entity rdf:type dcat:Dataset .",
"varOrdering": "ASC(?title)",
"userAccount": {
"uuid": "7e64818d-6276-46fb-8bb1-732e6e09f7e9"
}
}
]
26 changes: 26 additions & 0 deletions fixtures/0200_metadata-schemas_resource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchema",
"uuid": "6a668323-3936-4b53-8380-a4fd2ed082ee"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaVersion",
"uuid": "71d77460-f919-4f72-b265-ed26567fe361",
"schema": {
"uuid": "6a668323-3936-4b53-8380-a4fd2ed082ee"
},
"version": "1.0.0",
"name": "Resource",
"description": "",
"definition": "@prefix : <http://fairdatapoint.org/> .\n@prefix dash: <http://datashapes.org/dash#> .\n@prefix dcat: <http://www.w3.org/ns/dcat#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n:ResourceShape a sh:NodeShape ;\n sh:targetClass dcat:Resource ;\n sh:property [\n sh:path dct:title ;\n sh:nodeKind sh:Literal ;\n sh:minCount 1 ;\n sh:maxCount 1 ;\n dash:editor dash:TextFieldEditor ;\n ], [\n sh:path dct:description ;\n sh:nodeKind sh:Literal ;\n sh:maxCount 1 ;\n dash:editor dash:TextAreaEditor ;\n ], [\n sh:path dct:publisher ;\n sh:node :AgentShape ;\n sh:minCount 1 ;\n sh:maxCount 1 ;\n dash:editor dash:BlankNodeEditor ;\n ], [\n sh:path dcat:version ;\n sh:name \"version\" ;\n sh:nodeKind sh:Literal ;\n sh:minCount 1 ;\n sh:maxCount 1 ;\n dash:editor dash:TextFieldEditor ;\n dash:viewer dash:LiteralViewer ;\n ], [\n sh:path dct:language ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ], [\n sh:path dct:license ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ], [\n sh:path dct:rights ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ] .\n\n:AgentShape a sh:NodeShape ;\n sh:targetClass foaf:Agent ;\n sh:property [\n sh:path foaf:name;\n sh:nodeKind sh:Literal ;\n sh:minCount 1 ;\n sh:maxCount 1 ;\n dash:editor dash:TextFieldEditor ;\n ] .\n",
"targetClasses": ["http://www.w3.org/ns/dcat#Resource"],
"type": "INTERNAL",
"origin": null,
"importedFrom": null,
"state": "LATEST",
"published": false,
"abstractSchema": true,
"suggestedResourceName": null,
"suggestedUrlPrefix": null
}
]
40 changes: 40 additions & 0 deletions fixtures/0210_metadata-schemas_data-service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchema",
"uuid": "89d94c1b-f6ff-4545-ba9b-120b2d1921d0"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaVersion",
"uuid": "9111d436-fe58-4bd5-97ae-e6f86bc2997a",
"schema": {
"uuid": "89d94c1b-f6ff-4545-ba9b-120b2d1921d0"
},
"version": "1.0.0",
"name": "Data Service",
"description": "",
"definition": "@prefix : <http://fairdatapoint.org/> .\n@prefix dash: <http://datashapes.org/dash#> .\n@prefix dcat: <http://www.w3.org/ns/dcat#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n:DataServiceShape a sh:NodeShape ;\n sh:targetClass dcat:DataService ;\n sh:property [\n sh:path dcat:endpointURL ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n ] , [\n sh:path dcat:endpointDescription ;\n sh:nodeKind sh:Literal ;\n sh:maxCount 1 ;\n dash:editor dash:TextAreaEditor ;\n dash:viewer dash:LiteralViewer ;\n] .\n",
"targetClasses": [
"http://www.w3.org/ns/dcat#Resource",
"http://www.w3.org/ns/dcat#DataService"
],
"type": "INTERNAL",
"origin": null,
"importedFrom": null,
"state": "LATEST",
"published": false,
"abstractSchema": false,
"suggestedResourceName": null,
"suggestedUrlPrefix": null
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaExtension",
"uuid": "2efc8366-541d-493f-8661-69ad8f72dfa1",
"metadataSchemaVersion": {
"uuid": "9111d436-fe58-4bd5-97ae-e6f86bc2997a"
},
"extendedMetadataSchema": {
"uuid": "6a668323-3936-4b53-8380-a4fd2ed082ee"
},
"orderPriority": 0
}
]
41 changes: 41 additions & 0 deletions fixtures/0220_metadata-schemas_metadata-service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchema",
"uuid": "6f7a5a76-6185-4bd0-9fe9-62ecc90c9bad"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaVersion",
"uuid": "36b22b70-6203-4dd2-9fb6-b39a776bf467",
"schema": {
"uuid": "6f7a5a76-6185-4bd0-9fe9-62ecc90c9bad"
},
"version": "1.0.0",
"name": "Metadata Service",
"description": "",
"definition": "@prefix : <http://fairdatapoint.org/> .\n@prefix fdp: <https://w3id.org/fdp/fdp-o#> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n\n:MetadataServiceShape a sh:NodeShape ;\n sh:targetClass fdp:MetadataService .\n",
"targetClasses": [
"http://www.w3.org/ns/dcat#Resource",
"http://www.w3.org/ns/dcat#DataService",
"https://w3id.org/fdp/fdp-o#MetadataService"
],
"type": "INTERNAL",
"origin": null,
"importedFrom": null,
"state": "LATEST",
"published": false,
"abstractSchema": false,
"suggestedResourceName": null,
"suggestedUrlPrefix": null
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaExtension",
"uuid": "8742361b-cd00-4167-b859-e45fa36d0cb7",
"metadataSchemaVersion": {
"uuid": "36b22b70-6203-4dd2-9fb6-b39a776bf467"
},
"extendedMetadataSchema": {
"uuid": "89d94c1b-f6ff-4545-ba9b-120b2d1921d0"
},
"orderPriority": 0
}
]
42 changes: 42 additions & 0 deletions fixtures/0230_metadata-schemas_fdp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchema",
"uuid": "a92958ab-a414-47e6-8e17-68ba96ba3a2b"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaVersion",
"uuid": "4e64208d-f102-45a0-96e3-17b002e6213e",
"schema": {
"uuid": "a92958ab-a414-47e6-8e17-68ba96ba3a2b"
},
"version": "1.0.0",
"name": "FAIR Data Point",
"description": "",
"definition": "@prefix : <http://fairdatapoint.org/> .\n@prefix dash: <http://datashapes.org/dash#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix fdp: <https://w3id.org/fdp/fdp-o#> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n:FDPShape a sh:NodeShape ;\n sh:targetClass fdp:FAIRDataPoint ;\n sh:property [\n sh:path fdp:startDate ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ] , [\n sh:path fdp:endDate ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ] , [\n sh:path fdp:uiLanguage ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n sh:defaultValue <http://id.loc.gov/vocabulary/iso639-1/en>;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ] , [\n sh:path fdp:metadataIdentifier ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ] , [\n sh:path fdp:metadataIssued ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ] , [\n sh:path fdp:metadataModified ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ] .\n",
"targetClasses": [
"http://www.w3.org/ns/dcat#Resource",
"http://www.w3.org/ns/dcat#DataService",
"https://w3id.org/fdp/fdp-o#MetadataService",
"https://w3id.org/fdp/fdp-o#FAIRDataPoint"
],
"type": "INTERNAL",
"origin": null,
"importedFrom": null,
"state": "LATEST",
"published": false,
"abstractSchema": false,
"suggestedResourceName": null,
"suggestedUrlPrefix": null
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaExtension",
"uuid": "afebd441-8aa5-464d-bc3c-033f175449b4",
"metadataSchemaVersion": {
"uuid": "4e64208d-f102-45a0-96e3-17b002e6213e"
},
"extendedMetadataSchema": {
"uuid": "6f7a5a76-6185-4bd0-9fe9-62ecc90c9bad"
},
"orderPriority": 0
}
]
40 changes: 40 additions & 0 deletions fixtures/0240_metadata-schemas_catalog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchema",
"uuid": "2aa7ba63-d27a-4c0e-bfa6-3a4e250f4660"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaVersion",
"uuid": "c9640671-945d-4114-88fb-e81314cb7ab2",
"schema": {
"uuid": "2aa7ba63-d27a-4c0e-bfa6-3a4e250f4660"
},
"version": "1.0.0",
"name": "Catalog",
"description": "",
"definition": "@prefix : <http://fairdatapoint.org/> .\n@prefix dash: <http://datashapes.org/dash#> .\n@prefix dcat: <http://www.w3.org/ns/dcat#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n:CatalogShape a sh:NodeShape ;\n sh:targetClass dcat:Catalog ;\n sh:property [\n sh:path dct:issued ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:viewer dash:LiteralViewer ;\n ], [\n sh:path dct:modified ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:viewer dash:LiteralViewer ;\n ], [\n sh:path foaf:homePage ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ], [\n sh:path dcat:themeTaxonomy ;\n sh:nodeKind sh:IRI ;\n dash:viewer dash:LabelViewer ;\n ] .\n",
"targetClasses": [
"http://www.w3.org/ns/dcat#Resource",
"http://www.w3.org/ns/dcat#Catalog"
],
"type": "INTERNAL",
"origin": null,
"importedFrom": null,
"state": "LATEST",
"published": false,
"abstractSchema": false,
"suggestedResourceName": "Catalog",
"suggestedUrlPrefix": "catalog"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaExtension",
"uuid": "e75cb601-318d-41ea-9a8b-32e0749c80a7",
"metadataSchemaVersion": {
"uuid": "c9640671-945d-4114-88fb-e81314cb7ab2"
},
"extendedMetadataSchema": {
"uuid": "6a668323-3936-4b53-8380-a4fd2ed082ee"
},
"orderPriority": 0
}
]
40 changes: 40 additions & 0 deletions fixtures/0250_metadata-schemas_dataset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchema",
"uuid": "866d7fb8-5982-4215-9c7c-18d0ed1bd5f3"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaVersion",
"uuid": "9cc3c89a-76cf-4639-a71f-652627af51db",
"schema": {
"uuid": "866d7fb8-5982-4215-9c7c-18d0ed1bd5f3"
},
"version": "1.0.0",
"name": "Dataset",
"description": "",
"definition": "@prefix : <http://fairdatapoint.org/> .\n@prefix dash: <http://datashapes.org/dash#> .\n@prefix dcat: <http://www.w3.org/ns/dcat#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n:DatasetShape a sh:NodeShape ;\n sh:targetClass dcat:Dataset ;\n sh:property [\n sh:path dct:issued ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ], [\n sh:path dct:modified ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ], [\n sh:path dcat:theme ;\n sh:nodeKind sh:IRI ;\n sh:minCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ], [\n sh:path dcat:contactPoint ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ], [\n sh:path dcat:keyword ;\n sh:nodeKind sh:Literal ;\n dash:editor dash:TextFieldEditor ;\n dash:viewer dash:LiteralViewer ;\n ], [\n sh:path dcat:landingPage ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n dash:viewer dash:LabelViewer ;\n ] .\n",
"targetClasses": [
"http://www.w3.org/ns/dcat#Resource",
"http://www.w3.org/ns/dcat#Dataset"
],
"type": "INTERNAL",
"origin": null,
"importedFrom": null,
"state": "LATEST",
"published": false,
"abstractSchema": false,
"suggestedResourceName": "Dataset",
"suggestedUrlPrefix": "dataset"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaExtension",
"uuid": "da13ba37-09f8-4937-9055-e3ee3aefc57c",
"metadataSchemaVersion": {
"uuid": "9cc3c89a-76cf-4639-a71f-652627af51db"
},
"extendedMetadataSchema": {
"uuid": "6a668323-3936-4b53-8380-a4fd2ed082ee"
},
"orderPriority": 0
}
]
40 changes: 40 additions & 0 deletions fixtures/0260_metadata-schemas_distribution.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchema",
"uuid": "ebacbf83-cd4f-4113-8738-d73c0735b0ab"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaVersion",
"uuid": "3cda8cd3-b08b-4797-822d-d3f3e83c466a",
"schema": {
"uuid": "ebacbf83-cd4f-4113-8738-d73c0735b0ab"
},
"version": "1.0.0",
"name": "Distribution",
"description": "",
"definition": "@prefix : <http://fairdatapoint.org/> .\n@prefix dash: <http://datashapes.org/dash#> .\n@prefix dcat: <http://www.w3.org/ns/dcat#> .\n@prefix dct: <http://purl.org/dc/terms/> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n:DistributionShape a sh:NodeShape ;\n sh:targetClass dcat:Distribution ;\n sh:property [\n sh:path dct:issued ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ] , [\n sh:path dct:modified ;\n sh:datatype xsd:dateTime ;\n sh:maxCount 1 ;\n dash:editor dash:DatePickerEditor ;\n dash:viewer dash:LiteralViewer ;\n ] , [\n sh:path dcat:accessURL ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n ] , [\n sh:path dcat:downloadURL ;\n sh:nodeKind sh:IRI ;\n sh:maxCount 1 ;\n dash:editor dash:URIEditor ;\n ] , [\n sh:path dcat:mediaType ;\n sh:nodeKind sh:Literal ;\n sh:minCount 1 ;\n sh:maxCount 1 ;\n dash:editor dash:TextFieldEditor ;\n dash:viewer dash:LiteralViewer ;\n ] , [\n sh:path dcat:format ;\n sh:nodeKind sh:Literal ;\n sh:maxCount 1 ;\n dash:editor dash:TextFieldEditor ;\n dash:viewer dash:LiteralViewer ;\n ] , [\n sh:path dcat:byteSize ;\n sh:nodeKind sh:Literal ;\n sh:maxCount 1 ;\n dash:editor dash:TextFieldEditor ;\n dash:viewer dash:LiteralViewer ;\n ] .\n",
"targetClasses": [
"http://www.w3.org/ns/dcat#Resource",
"http://www.w3.org/ns/dcat#Distribution"
],
"type": "INTERNAL",
"origin": null,
"importedFrom": null,
"state": "LATEST",
"published": false,
"abstractSchema": false,
"suggestedResourceName": "Distribution",
"suggestedUrlPrefix": "distribution"
},
{
"_class": "org.fairdatapoint.entity.schema.MetadataSchemaExtension",
"uuid": "a3b16a4e-cac7-4b71-a3de-94bb86714b5b",
"metadataSchemaVersion": {
"uuid": "3cda8cd3-b08b-4797-822d-d3f3e83c466a"
},
"extendedMetadataSchema": {
"uuid": "6a668323-3936-4b53-8380-a4fd2ed082ee"
},
"orderPriority": 0
}
]
Loading
Loading