Hi Mehul,

About 1.

The connection string given below points to a HTTP app server running on 
'host-1' using port '8012'. Use the Admin interface of MarkLogic Server to look 
it up. The HTTP app server contains a database settings which control against 
which modules and documents database (, and which modules root) queries should 
be executed.

About 2.

This little piece of code should show how 'naked' properties can be handled:

"initial properties",
xdmp:document-properties("/bla.xml");
"set property",
xdmp:document-set-property("/bla.xml", <test/>);
"properties",
xdmp:document-properties("/bla.xml");
"get doc",
doc("/bla.xml");
"remove property",
xdmp:document-remove-properties("/bla.xml", xs:QName("test"));
"properties",
xdmp:document-properties("/bla.xml");
"del doc",
xdmp:document-delete("/bla.xml");
"properties",
xdmp:document-properties("/bla.xml");
"done"

In short, use xdmp:document-delete to get rid of all properties even if there 
is no real document at that uri...

Kind regards,
Geert


Van: [email protected] 
[mailto:[email protected]] Namens Shah, Mehul (LNG-NPV)
Verzonden: woensdag 25 mei 2011 16:20
Aan: General MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] NQLoader and naked properties

I am looking at -- http://marklogic.github.com/semantic/#DOCUMENT_FORMAT - and 
have couple of questions.
1.      NQLoader configuration for connection string has following example
CONNECTION_STRING=http://admin:admin@host-1:8012/insert.xqy
Question: Can I specify which database?

2.      Document (N-Tuple) is loaded as properties of an empty document, known 
as "naked properties".
Question: These "naked properties" have no associated document; so is there any 
way to identify property document?   How do I delete them ?

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

Reply via email to