Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refactor(projectMetadataV2): remove projectMetadataV2 implementation (#…
  • Loading branch information
mpro7 committed Dec 13, 2021
1 parent fb6c56c commit 7b95d66
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 1,659 deletions.
27 changes: 0 additions & 27 deletions Makefile
Expand Up @@ -108,9 +108,6 @@ stack-up: docker-build env-file ## starts the knora-stack: fuseki, sipi, redis,
docker-compose -f docker-compose.yml up -d
$(CURRENT_DIR)/webapi/scripts/wait-for-knora.sh

.PHONY: stack-up-with-metadata
stack-up-with-metadata: stack-up metadata ## starts stack and adds metadata

.PHONY: stack-up-fast
stack-up-fast: docker-build-knora-api-image env-file ## starts the knora-stack by skipping rebuilding most of the images (only api image is rebuilt).
docker-compose -f docker-compose.yml up -d
Expand Down Expand Up @@ -313,30 +310,6 @@ init-db-test-from-prod: db_prod_dump.trig init-db-test-empty ## init local datab
@curl -X POST -H "Content-Type: application/sparql-update" -d "DROP ALL" -u "admin:test" "http://localhost:3030/knora-test"
@curl -X POST -H "Content-Type: application/trig" --data-binary "@${CURRENT_DIR}/db_prod_dump.trig" -u "admin:test" "http://localhost:3030/knora-test"

.PHONY: metadata
metadata: metadata-standard metadata-minimal metadata-maximal ## add three example metadata sets

.PHONY: metadata-standard
metadata-standard: ## add pseudo-realistic metadata set to anything project
@echo $@
@mkdir -p .tmp
@curl https://raw.githubusercontent.com/dasch-swiss/dsp-ontologies/main/example/example-metadata.ttl -o .tmp/metadata.ttl -s
@curl -X PUT -u root@example.com:test -H "Content-Type: text/turtle" -T ".tmp/metadata.ttl" "localhost:3333/v2/metadata/http%3A%2F%2Frdfh.ch%2Fprojects%2F0001" -s -o /dev/null

.PHONY: metadata-minimal
metadata-minimal: ## add minimal metadata set to images project
@echo $@
@mkdir -p .tmp
@curl https://raw.githubusercontent.com/dasch-swiss/dsp-ontologies/main/example/example-metadata-minimal.ttl -o .tmp/metadata.ttl -s
@curl -X PUT -u root@example.com:test -H "Content-Type: text/turtle" -T ".tmp/metadata.ttl" "localhost:3333/v2/metadata/http%3A%2F%2Frdfh.ch%2Fprojects%2F00FF" -s -o /dev/null

.PHONY: metadata-maximal
metadata-maximal: ## add maximal metadata set to dokubib project
@echo $@
@mkdir -p .tmp
@curl https://raw.githubusercontent.com/dasch-swiss/dsp-ontologies/main/example/example-metadata-maximal.ttl -o .tmp/metadata.ttl -s
@curl -X PUT -u root@example.com:test -H "Content-Type: text/turtle" -T ".tmp/metadata.ttl" "localhost:3333/v2/metadata/http%3A%2F%2Frdfh.ch%2Fprojects%2F0804" -s -o /dev/null

#################################
## Other
#################################
Expand Down
88 changes: 0 additions & 88 deletions docs/03-apis/api-v2/metadata.md

This file was deleted.

1 change: 0 additions & 1 deletion mkdocs.yml
Expand Up @@ -39,7 +39,6 @@ nav:
- Introduction: 03-apis/api-v2/introduction.md
- Authentication: 03-apis/api-v2/authentication.md
- Knora IRIs: 03-apis/api-v2/knora-iris.md
- Metadata: 03-apis/api-v2/metadata.md
- Reading and Searching Resources: 03-apis/api-v2/reading-and-searching-resources.md
- Reading the User's Permissions on Resources and Values: 03-apis/api-v2/reading-user-permissions.md
- Getting Lists: 03-apis/api-v2/getting-lists.md
Expand Down

0 comments on commit 7b95d66

Please sign in to comment.