Hi David,


Do you mean you use xdmp:document-set-properties and
xdmp:document-add-properties?



Thank you,



Alex Jouravlev
Director, Business Abstraction Pty Ltd
Phone:       +61-(2)-8003-4830
Mobile:     +61-4-0408-3258
Web: http://www.businessabstraction.com
LinkedIn: http://au.linkedin.com/in/alexjouravlev/

*From:* [email protected] [mailto:
[email protected]] *On Behalf Of *David Ennis
*Sent:* Tuesday, 23 December 2014 8:12 PM
*To:* MarkLogic Developer Discussion
*Subject:* Re: [MarkLogic Dev General] Inserting triples into a document



Hi.



You can store them anywhere in a document or properties fragment as long as
they are in sem:triples format.



http://docs.marklogic.com/sem:triple



Its just an XML element of a certain namespace that causes it to be indexed
as a triple.



Example somewhere in your XML:

<sem:triple xmlns:sem="http://marklogic.com/semantics";>

  <sem:subject>subject</sem:subject>

  <sem:predicate>predicate</sem:predicate>

  <sem:object

   datatype="http://www.w3.org/2001/XMLSchema#string";>object</sem:object>

</sem:triple>



I like to store them in properties fragments as I find it a bit tidy.



Kind Regards,

David Ennis






Kind Regards,

David Ennis





*David Ennis*
*Content Engineer*

[image: HintTech]  <http://www.hinttech.com/>
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[image: http://www.hinttech.com] <http://www.hinttech.com>
<https://twitter.com/HintTech>  <http://www.facebook.com/HintTech>
<http://www.linkedin.com/company/HintTech>



On 23 December 2014 at 08:12, Alex Jouravlev <[email protected]>
wrote:

Hi,



Is it possible to insert triples into a given document? It doesn’t look
like sem:rdf-insert does that. However some case studies suggest adding
triples tro documents.



Thanks



Alex Jouravlev
Mobile:     +61-4-0408-3258
LinkedIn: http://au.linkedin.com/in/alexjouravlev/




_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to