Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

dswarm/UvA-Q-and-A

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d:swarm Q'and'A session for UvA

samples for d:swarm Q'and'A session for UvA

Data Resources

Data Models

(content)

write data model to local Data Hub (e.g.)

curl -H "Content-Type:multipart/mixed" -F "[email protected]; type=application/json" -F "[email protected]; type=application/octet-stream" -X POST http://localhost:7474/graph/gdm/put -i -v

example for metadata of the request (request.json)

{
    "data_model_uri": "http://data.slub-dresden.de/datamodel/DataModel-cf998267-392a-4d87-a33a-88dd1bffb016/data",
    "deprecate_missing_records": "false",
    "record_class_uri": "http://purl.org/ontology/bibo/Document",
    "enable_versioning": "false"
}

(see the related write.gdm.request.[..].json files)

Input Data Models (sources)

Projects (incl. Mappings)

push project to (another) d:swarm instance

  1. robust import

        curl -v -XPOST -H "Content-Type: application/json"  -d"@[FILE NAME].json" http://[HOSTNAME OR IP TO YOUR D:SWARM INSTANCE]/dmp/projects/robust
    

    note: it could be the case that this endpoint is not (yet) available at your d:swarm instance

  2. normal import

        curl -v -XPOST -H "Content-Type: application/json"  -d"@[FILE NAME].json" http://[HOSTNAME OR IP TO YOUR D:SWARM INSTANCE]/dmp/projects
    

note: please don't forget ro replace the variable parts (i.e. that one in '[]') with concrete things

About

samples for d:swarm Q'and'A session for UvA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published