Skip to content

Files

Latest commit

1cb6a1c · Jun 1, 2019

History

History

match-service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 24, 2018
Jun 15, 2018
May 22, 2018
Jun 1, 2019
Jul 9, 2018
Jul 31, 2018
Jul 31, 2018
Oct 23, 2018
Oct 23, 2018
Mar 18, 2019
Oct 24, 2018
Jun 27, 2018
Jul 31, 2018
Jun 1, 2019
Jun 1, 2019
Jun 1, 2019
Mar 18, 2019
Oct 24, 2018
# Setup

Configuration is kept in the file ../conf.js, this includes:

* The URI for the base LDP container.

* The URI for the WSI (Workset Services Index)

* Default URIs for Target WorkSet and Target Fragment

To create a WSI, set the base in conf.js and use:

  node create-wsi

# Match services

## Key Match service

To create matches for all fragment in a workset run as:

node keymatch.js ALL <workset-uri>

To run just one added fragment:

node keymatch.js <workset-uri> <target-fragment>

## Length Match service

To create matches for all fragment in a workset run as:

node lengthmatch.js ALL <workset-uri>

To run just one added fragment:

node lengthmatch.js <workset-uri> <target-fragment>

## Instrument Match service

To create matches for all fragments that are playable by an instrument:

node instrumentmatch.js <workset-uri> <instrument-uri>

## Script to run all services on a workset

Run all services:

./runMatchAgents.sh <workset-uri> [optional_instrument_uri_file]

# Utilities

* To fetch FragRefs from a container and resolve them to a list of Fragments:

  node listfrags WORKSET-URI

* Utility to remove all items from an LDP container:

  node emptycontainer CONTAINER-URI

* Find an annotation matching TARGET in CONTAINER

  node findAnn CONTAINER-URI TARGET-URI

* Find matches in a MatchService container (dealing with recursion on a motivation of ninre:seeHere):

  node findMatches CONTAINER-URI TARGET-URI