Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API operation to insert new terms in vocabulary #35

Closed
carueda opened this issue Feb 7, 2017 · 3 comments
Closed

API operation to insert new terms in vocabulary #35

carueda opened this issue Feb 7, 2017 · 3 comments

Comments

@carueda
Copy link
Member

carueda commented Feb 7, 2017

Corresponding entry in old system: mmisw/mmiorr#231

@mikebotts @jjfredericks @graybeal FYI

@carueda carueda added this to the Feb-2017 milestone Feb 7, 2017
@carueda carueda self-assigned this Feb 7, 2017
@carueda carueda changed the title API to insert term in vocabulary API to insert terms in vocabulary Feb 13, 2017
@carueda carueda changed the title API to insert terms in vocabulary API to insert new terms in vocabulary Feb 13, 2017
@carueda
Copy link
Member Author

carueda commented Feb 13, 2017

The addition of the new terms will not generate a new version of the corresponding vocabulary.

Regarding current vocabulary status the effect of adding terms is as follow (see also #36):

vocab status new version?
draft no
unstable no
testing no
stable no
deprecated no
archaic no

@carueda carueda changed the title API to insert new terms in vocabulary API operation to insert new terms in vocabulary Feb 13, 2017
@carueda
Copy link
Member Author

carueda commented Feb 14, 2017

Preliminary POST /ont/term in v3.2.1.

Adds a single new term. Parameters:

  • vocUri: URI of ontology
  • version: ontology version (optional)
  • classUri: class of specific vocabulary (optional). If not given,
    and there's only one class in the ontology, then uses it.
    Otherwise, error.
  • one of termName or termUri to indicate the URI for the new term (required)
  • attributes: array of array of strings for the property values (required)

Example request for a vocabulary with only a class having one property:

$ http -a username:password post http://localhost:8081/api/v0/ont/term \
	 vocUri=http://localhost:9001/src/app/~carueda/vocab1 \
	 termName=baz attributes:='[ ["some prop value", "other value for same prop] ]'

@carueda carueda modified the milestones: Mar-2017, Feb-2017 Mar 3, 2017
@carueda
Copy link
Member Author

carueda commented May 30, 2017

Closing based on the already implemented operation.
Open a new entry for any additional needed adjustments/fixes.

@carueda carueda closed this as completed May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant