Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First, create a Turtle format file in vivo.home<vivo-home>/rdf/display/everytime . You may name the file anything you like.  All example files are in Turtle format.  Turtle files typically have a .ttl file type.  Your file should contain the following:

...

Second, restart Tomcat.  VIVO will reread its everytime content.  The assertions in the Turtle file will be added to VIVO's content triple store.  The API is now ready for use.

Third, visit the URL:  http://mydomain.edu/api/datarequest/hello

You should see:

Code Block
Hello, World

...

The HelloDistributor supports a name parameter which can be specified in the call:

Visit http://mydomain.edu/api/datarequest/hello?name=Bob

You should see:

Code Block
Hello, Bob

...

Following are two assertions of type for a new entity with the URI :data_distributor_hello.  You can use any URI for your data distributor entity.  You will need to use unique URI for each data distributor entity you create, so a naming convention (see below) may be helpful.

...