Skip to content

Delete Infotons and Fields

Step Outline

  1. Add Infotons and Fields.
  2. Delete Infotons and Fields

1. Add Infotons and Fields

Action: Add several infotons and field values.

Curl command:

curl -X POST "<cm-well-host>/_in?format=ntriples" --data-binary @input.txt

File contents:

<http://example/Individuals/MamaBear> <http://purl.org/vocab/relationship/spouseOf> <http://example/Individuals/PapaBear> .
    <http://example/Individuals/MamaBear> <http://ont.thomsonreuters.com/bermuda/hasName> "Betty".
    <http://example/Individuals/PapaBear> <http://purl.org/vocab/relationship/spouseOf> <http://example/Individuals/MamaBear> .
    <http://example/Individuals/PapaBear> <http://ont.thomsonreuters.com/bermuda/hasName> "Barney".
    <http://example/Individuals/BabyBear1> <http://purl.org/vocab/relationship/childOf> <http://example/Individuals/MamaBear>.
    <http://example/Individuals/BabyBear1> <http://purl.org/vocab/relationship/childOf> <http://example/Individuals/PapaBear>.
    <http://example/Individuals/BabyBear1> <http://ont.thomsonreuters.com/bermuda/hasName> "Barbara".
    <http://example/Individuals/BabyBear1> <http://purl.org/vocab/relationship/siblingOf> <http://example/Individuals/BabyBear2>.
    <http://example/Individuals/BabyBear1> <http://purl.org/vocab/relationship/siblingOf> <http://example/Individuals/BabyBear3>.
    <http://example/Individuals/BabyBear2> <http://purl.org/vocab/relationship/childOf> <http://example/Individuals/MamaBear>.
    <http://example/Individuals/BabyBear2> <http://purl.org/vocab/relationship/childOf> <http://example/Individuals/PapaBear>.
    <http://example/Individuals/BabyBear2> <http://ont.thomsonreuters.com/bermuda/hasName> "Bobby".
    <http://example/Individuals/BabyBear3> <http://purl.org/vocab/relationship/childOf> <http://example/Individuals/MamaBear>.
    <http://example/Individuals/BabyBear3> <http://purl.org/vocab/relationship/childOf> <http://example/Individuals/PapaBear>.
    <http://example/Individuals/BabyBear3> <http://ont.thomsonreuters.com/bermuda/hasName> "Bert".

Response:

{"success":true}

2. Update Field Values

Action: Delete all "BabyBear" infotons and all name fields. Curl command:

curl -X POST "<cm-well-host>/_in?format=ntriples" --data-binary @input.txt

File contents:

<http://example/Individuals/BabyBear1> <cmwell://meta/sys#fullDelete> "false" .
    <http://example/Individuals/BabyBear2> <cmwell://meta/sys#fullDelete> "false" .
    <http://example/Individuals/BabyBear3> <cmwell://meta/sys#fullDelete> "false" .
    <http://example/Individuals/MamaBear> <cmwell://meta/sys#markReplace> <http://ont.thomsonreuters.com/bermuda/hasName> .
    <http://example/Individuals/PapaBear> <cmwell://meta/sys#markReplace> <http://ont.thomsonreuters.com/bermuda/hasName> .

Response:

{"success":true}

API Reference

Add Infotons and Fields

Delete Multiple Infotons

Delete Fields