-
Notifications
You must be signed in to change notification settings - Fork 37
WIP: Bootstrap relational database from fixtures #775
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
Draft
MarekSuchanek
wants to merge
56
commits into
develop
Choose a base branch
from
feature/634-boostrapping-fdp
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
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 6391176
rename package boostrap to bootstrap
dennisvang b41a40e
Switch to Spring Data Populators
MarekSuchanek 5fe8fcb
add autogenerated license text
dennisvang cde6294
remove unused import
dennisvang 1d24998
move fixtures dir from src/main/resources into project root
dennisvang 9a5c110
wire BootstrapProperties into BootstrapConfig
dennisvang 44aea3b
get fixtures from dir specified in bootstrap.db-fixtures-path
dennisvang 9706c09
copy db fixtures dir into docker image
dennisvang 52e72f0
add some todos w.r.t. rdf data dir
dennisvang 9779545
use bootstrap.enabled property in populator
dennisvang 48a8758
add some bootstrap logging
dennisvang a1ddea2
remove bootstrap.enabled from application.yml
dennisvang 1e050f6
rename dbFixturesPath property to dbFixturesDir
dennisvang 06084a2
add instructions to BootstrapConfig javadoc
dennisvang eef76db
fix checkstyle issues
dennisvang dda23fb
Merge pull request #784 from FAIRDataTeam/proposal/db-fixtures-path
dennisvang 47a7119
remove files and variables related to RDF bootstrap
dennisvang 9eeb9ac
Polish code based on reviews
MarekSuchanek ca929b4
Unify SHACL shapes indentation
MarekSuchanek 1bc1828
Use JSON fixtures instead of SQL migrations in development profile (#…
dennisvang 042c070
Add history for relational database fixtures (#797)
dennisvang d7a6399
Merge branch 'develop' into feature/634-boostrapping-fdp
dennisvang ce5b29b
Enable loading relational db fixtures from multiple directories (#793)
dennisvang 6c62446
Add missing javadoc and populator tests
MarekSuchanek 57cedda
update BootstrapConfig javadoc
dennisvang 3d28644
remove data migrations from src/test/resources/test/db
dennisvang 6ab040d
remove reference to test data migrations from test config
dennisvang ac0e0ae
explicitly enable bootstrap in test config
dennisvang d5915b1
add test-fixtures location to bootstrap config
dennisvang a86092a
rename 'db-fixtures-dirs' property to 'locations'
dennisvang f5abb80
rename fixturesDir loop variable to location
dennisvang 4618d91
remove 'file:' prefix from fixture location pattern
dennisvang e647d94
clarify RepositoriesPopulatedEvent log message
dennisvang 049eeb2
Revert "remove data migrations from src/test/resources/test/db"
dennisvang f3e49cb
replace V0001.1__dev-data-users.sql test data migration by json fixtu…
dennisvang caddb3d
cherry-pick: Make test logging config easier to use (#806)
dennisvang d14ce0f
adapt bootstrap.locations for DatabaseBootstrapTests
dennisvang a1e6c8c
re-populate db from fixtures after flyway clean in WebIntegrationTest…
dennisvang 636c38c
delete V0001.2__dev-data-schemas.sql because it is covered by the def…
dennisvang 1aa0b16
delete V0001.3__dev-data-rds.sql because it is covered by the 03xx fi…
dennisvang 79ec86f
delete V0001.4__dev-data-membership.sql because it is covered by the …
dennisvang ec5711a
replace V0001.5__dev-settings.sql by 0500_test-settings.json
dennisvang 883e341
replace V0001.6__test-schemas.sql by 0600_test-schemas.json
dennisvang e067b09
allow full ant-style location patterns for populator resources
dennisvang 10e7a18
adapt DatabaseBootstrapTests to use the default fixtures
dennisvang 86225f2
simplify resource location pattern for Windows compatibility
dennisvang 0dd2776
catch all exceptions in RdfMetadataMigration.runMigration (dev only)
dennisvang a531516
fix test data description to match user account uuid
dennisvang 2493791
modify testDuplicateIdEntityOverwriteBootstrap and corresponding fixt…
dennisvang ce810ea
adapt search/query/saved test expectations to updated test data
dennisvang 79cde97
revert default user emails from example.org to example.com
dennisvang 65f641f
adapt order of test users to match the original expectation
dennisvang 2341d09
repopulate test database after flyway.clean in ResourceDefinitionCach…
dennisvang a3c18ec
Merge pull request #802 from FAIRDataTeam/proposal/634-remove-sql-tes…
dennisvang 5f8fd38
Handle optionals in MembershipService (#820)
dennisvang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.