POST Single Attribute to a SubjectURi
HI
TO post a single triple attribute to a SubjectURI through the API, what is the endpoint to do so through?
Eg:
<" target="_blank">http://d.opencalais.com/dochash-1/1409bb1e-d9a7-3f0b-ac24-a0cbbb28f03d>; <" target="_blank">http://ont.tr.com/HasRelevanceTo>; "CoXYZ"
Thank you
Best Answer
-
POST /context/{id}/rdf/file
or
POST /entity
The triples can potentially be stored in a separate context as Data Fusion will integrate the information using subjectURI or a custom context for the authenticating user is created if no contextId is provided.
At a minimum, the RDF requires an rdf:type and the label predicates defined as the system will reject the RDF otherwise. No explicit stitching is required if the subjectURI matches the subjectURI in another context that you would like to annotate. It is important that the entity type mappings are the same across contexts.
0
Answers
-
Eric,
Did you check the REST API documentation (see here - http://docs.datafusion.thomsonreuters.com/restapi)?
Most information regarding API queries, including your instance's endpoint, can be found there along with sample queries.
0 -
HI Jeff, yes i did. I remembered Tomasz told me it was removed, and use another replacement endpoint. But the other endpoint was also removed. Kindly assist. Thanks
0 -
Dear Tomasz,
POST /context/{id}/rdf/file
This requires a file.
For the other, an error returns. As this is not a new entity.
"error": "Unable to create the entity with the newEntityUri, preferredLabelPredicate, and rdf parameters supplied. Please check the parameters and try again." }
POST/ entity
Sending, curl -X POST --header 'Content-Type: text/plain' --header 'Accept: application/json' --header 'Authorization: Bearer vvj8o71dfgtda46ic7d4tnvnrllr010i' -d '<http://rdf.entagen.com/ns/document/be0e516244f18db78f54997a6e6b60e5> <http://ont.tr.com/ppty/hasSentiment> "0.5" .' 'https://dds-test.thomsonreuters.com/datafusion/api/entity?entityTypeId=3&newEntityUri=http://rdf.entagen.com/ns/document/be0e516244f18db78f54997a6e6b60e5&preferredLabelPredicate=http://www.w3.org/2000/01/rdf-schema#label'0 -
See my updated answer, you need to add rdf:type and label predicates to the body of your POST. More examples in https://community.developers.refinitiv.com/questions/7184/endpoints-to-use-and-the-metadata-to-post-to-creat.html
0 -
Dear Tomasz, i am not creating a new entity but tagging new attributes to an existing entity. Is it necessary to add on label predicates? Thanks
0 -
Yes, that's how the API call is constructed but if the parameters match the existing mappings there will be no change as they will be simply overwritten.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛