AKSW / shapbird

ShapBiRd
GNU General Public License v3.0
1 stars 1 forks source link

ShapBiRd

Shapes for Bibtex to RDF

The Shapbird

Command Line Use

Service Workflow (n8n & webhookd)

  1. $ export BIB=<bib-file-path>

    • Set bib file as environment
  2. $ docker-compose -f deploy-docker-compose.yml build

    • Builds ShapBiRd deployment images
  3. $ docker-compose -f service-docker-compose.yml up [-d]

    • Builds, creates and starts the ShapBiRd service
    • n8n
      • Accessible via http://localhost:5678/
      • Workflow can be uploaded from file workflow.json
    • webhookd
      • Readies server for requets at port :9000
      • Example deploy request $ curl http://localhost:9000/deploy
      • From inside docker network (ex. n8n) http://webhookd:9000/deploy
  4. $ docker-compose -f service-docker-compose.yml down -v

    • Stops and removes the ShapBiRd service containers, network and volumes

Deployment Workflow (Direct Use)

  1. $ export BIB=<bib-file-path>

    • Set bib file as environment
  2. $ export HOST_PWD=${PWD}

    • Set current PWD as environment
  3. $ docker-compose -f deploy-docker-compose.yml up

    • Builds, creates and starts the ShapBiRd deployment
    • Uses default config bib_path: ./resources/aksw.bib and base_uri: http://example.org/bib/
  4. $ docker-compose -f deploy-docker-compose.yml down -v

    • Stops and removes the ShapBiRd deployment containers, network and volumes

Documentation

Built With

Mapping (bib2rdf/schema.map)

Namespaces

Type Mappings

Default entry types and their associated RDF types

Types assigned to person and organization

Types assigned to collection resources

Resource for the 'and other' author/editor part

Field mappings

Address related fields

Date related fields

Title related fields

Collection related fields

Person or organization related fields

Identifier fields

All other bibtex fields

Fields derived from BibTeX information (aksw.bib specific)

Used if createAddressResource

Used for the merged date

Used for person and organization resources

The structured name has several parts

Property used to attach a label