[MarkLogic Dev General] (no subject)

2014-06-05 Thread Liubov Efremova
Hello! Can you give me the advice how to detect the mime type of the binary content stored in marklogic? -- Kind regards, Liubov Efremova. ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Generating XML from Schemas

2014-06-05 Thread Wanczowski, Andrew
Hello All, I am currently looking to build a metadata store for various documents and want them to remain in their native schemas. Content will be generated within the system and come from external systems. Some examples are the PRISM, NewsML and IPTC/XMP Schemas. I have been investigating

Re: [MarkLogic Dev General] (no subject)

2014-06-05 Thread Michael Blakeley
If you just want a lookup based on the server mimetypes table and the URI extension, try https://docs.marklogic.com/xdmp:uri-content-type xdmp:uri-content-type(example.doc) = application/msword If you want something more like http://linux.die.net/man/1/file you'll have to build it yourself.

[MarkLogic Dev General] newbie question: Sparql from Java

2014-06-05 Thread Marc Limotte
Hi. I'd like to run a SPARQL query from Java. I've found various bits of documentation (including http://developer.marklogic.com/learn/semantics-exercises/sparql-101). But the docs all seem to cover running SPARQL from the console or maybe REST or Xquery. Can someone point me in the right

Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL during re indexing for one of host in cluster environment

2014-06-05 Thread Michael Blakeley
Which release of MarkLogic is this? On what OS? What's the configured size of the expanded-tree cache? How much RAM does each host have? So you have 5x10^6 documents on 5 hosts, or 10^6 per host? How many forests per host? How large are the forests on disk? You can let reindexing proceed in

Re: [MarkLogic Dev General] newbie question: Sparql from Java

2014-06-05 Thread Michael Blakeley
You could call https://docs.marklogic.com/sem:sparql through an XCC moduleInvoke, something like this: xquery version 1.0-ml; (: sparql.xqy :) import module namespace sem=http://marklogic.com/semantics; at /MarkLogic/semantics.xqy ; (: Add more variables to support bindings, etc. as needed :)

[MarkLogic Dev General] QConsole lost data

2014-06-05 Thread Will Thompson
I just noticed that on my dev QConsole (on ML 7.0-1 OSX) workspaces and tabs appear to have somehow reverted to a state from many months ago. Nothing significant has occurred directly relating to ML. The only thing out of the ordinary is that Chrome recently crashed, after which I restarted it

Re: [MarkLogic Dev General] QConsole lost data

2014-06-05 Thread Michael Blakeley
Everything seems to be stored in these locations: xdmp:directory('/workspaces/', 'infinity') xdmp:directory('/histories/', 'infinity') Is it possible that it just switched you to a different workspace? -- Mike On 5 Jun 2014, at 12:36 , Will Thompson wthomp...@jonesmcclure.com wrote:

Re: [MarkLogic Dev General] Generating XML from Schemas

2014-06-05 Thread Michael Blakeley
Can you expand on the need to generate XML documents? If you've got NewsML etc coming in from external sources, what sort of documents are generated within the system? -- Mike On 5 Jun 2014, at 06:58 , Wanczowski, Andrew andrew_wanczow...@condenast.com wrote: Hello All, I am currently

Re: [MarkLogic Dev General] QConsole lost data

2014-06-05 Thread Will Thompson
I use several workspaces, but everything seems to have reverted to before I did. I.e.: there are several tabs in Workspace that I had reorganized into other workspaces like Utils, etc. (months, if not over a year ago), and I had accumulated several other ones by importing them (those are

Re: [MarkLogic Dev General] Generating XML from Schemas

2014-06-05 Thread Wanczowski, Andrew
I am looking to generate documents that are not coming from external sources. For example we would have editors filling out a web forms and then posting them to ML. At that time I would like to detect what type of content they are trying to create and then generate a document using the appropriate

Re: [MarkLogic Dev General] QConsole lost data

2014-06-05 Thread Will Thompson
All of the current workspaces are there, along with this old workspace (there are two named Workspace) that is the only one getting loaded. It at least looks like most if not all of the current histories are there. I'm not sure what I should try next...delete the unwanted duplicate workspace? I

Re: [MarkLogic Dev General] best practices for manual directory creation

2014-06-05 Thread Michael Sokolov
Thanks Geert. You described more or less what I had done. With directory-creation=manual and maintain-directory-last-modified=false (but maintain-last-modified=true), things seemed to run quite quickly, without the contention I observed before. The tricky part is updating the directory

Re: [MarkLogic Dev General] Generating XML from Schemas

2014-06-05 Thread David Lee
This is in the general case quite tricky. First off its a chicken and egg problem ... how do you detect which schema ? If the schema is defined in input then good ... but if not ... you need rules to find it. Next, schema *rarely* gives enough information on how to generate usable documents.

Re: [MarkLogic Dev General] QConsole lost data

2014-06-05 Thread Michael Blakeley
I don't know much about the qconsole code. Earlier versions used the same backend as cq, but all that seems to have changed. Maybe support could help? Looking at qconsole-model.xqy and qconsole-amped.xqy I think the workspaces should be this:

Re: [MarkLogic Dev General] QConsole lost data

2014-06-05 Thread Danny Sokolsky
Will, I think you said you are using 7.0-1. There were several bugs fixed in 7.0-2, so an upgrade might be a good idea. -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Blakeley Sent:

Re: [MarkLogic Dev General] Generating XML from Schemas

2014-06-05 Thread Michael Blakeley
I'd suggest using XQuery for the basic CRUD framework, and dispatch to an XSLT for document generation. You might end up with a default XSLT per schema, plus various XSLTs that override the defaults for particular use-cases. Each document-generating request would supply whatever information is