Re: [MarkLogic Dev General] "global" variables in Query Console

2015-03-20 Thread Joe Bryan
A quick detail: placing a document or search result directly in a server field 
throws the XDMP-SERVERFIELDDATABASENODE

ex:
xdmp:set-server-field("test", fn:doc()[1])

To get around this, you can copy the result into a new document node:

xdmp:set-server-field("test", document{ fn:doc()[1] })

The docs mention expiring database-node server values after 10 minutes, but I 
can't seem to duplicate that.

Thanks.

-jb

From: Joe Bryan mailto:joe.br...@marklogic.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Saturday, March 21, 2015 at 2:25 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] "global" variables in Query Console

Hi Alex,

You could put the query results in a server field, and then retrieve them from 
other QConsole buffers.

http://docs.marklogic.com/xdmp:set-server-field
http://docs.marklogic.com/xdmp:get-server-field

Thanks.

-jb

From: Alex Jouravlev 
mailto:al...@businessabstraction.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Saturday, March 21, 2015 at 2:17 AM
To: MarkLogic Developer Discussion 
mailto:General@developer.marklogic.com>>
Subject: [MarkLogic Dev General] "global" variables in Query Console

Hi everyone,

Just a quick easy question. I want to run a rather complex query, then do a few 
things with the result. I want to run the query once, and then try this and 
that in other qconsole windows. Other than saving the result of the first query 
as a separate document, what can I do?

Thank you

Alex


___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] "global" variables in Query Console

2015-03-20 Thread Joe Bryan
Hi Alex,

You could put the query results in a server field, and then retrieve them from 
other QConsole buffers.

http://docs.marklogic.com/xdmp:set-server-field
http://docs.marklogic.com/xdmp:get-server-field

Thanks.

-jb

From: Alex Jouravlev 
mailto:al...@businessabstraction.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Saturday, March 21, 2015 at 2:17 AM
To: MarkLogic Developer Discussion 
mailto:General@developer.marklogic.com>>
Subject: [MarkLogic Dev General] "global" variables in Query Console

Hi everyone,

Just a quick easy question. I want to run a rather complex query, then do a few 
things with the result. I want to run the query once, and then try this and 
that in other qconsole windows. Other than saving the result of the first query 
as a separate document, what can I do?

Thank you

Alex


___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] "global" variables in Query Console

2015-03-20 Thread Alex Jouravlev
Hi everyone,

Just a quick easy question. I want to run a rather complex query, then do a
few things with the result. I want to run the query once, and then try this
and that in other qconsole windows. Other than saving the result of the
first query as a separate document, what can I do?

Thank you

Alex
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ML8 404 Error

2015-03-20 Thread Dave Cassel
More info about using the declarative rewriter 
here.

--
Dave Cassel
Developer Community Manager
MarkLogic Corporation


From: Erik Hennum mailto:erik.hen...@marklogic.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, March 20, 2015 at 7:05 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] ML8 404 Error

Hi, Paul:

When you say "redeployed my app," what kind of application is it?

If it's a ApplicationBuilder app, it depends on the REST API, which switched 
from the imperative XQuery rewriter to the new declarative XML rewriter.  In 
that case, you might open the appserver in the Admin Ui and check the url 
rewriter field to make sure that upgrade has set the field to

/MarkLogic/rest-api/rewriter.xml

instead of

/MarkLogic/rest-api/rewriter.xqy


Hoping that helps,


Erik Hennum


From: 
general-boun...@developer.marklogic.com
 
[general-boun...@developer.marklogic.com]
 on behalf of Paul Williams 
[paul.willi...@flatironssolutions.com]
Sent: Friday, March 20, 2015 3:17 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] ML8 404 Error

I recently upgraded to ML8 and redeployed my app on my local dev environment 
(Win Serv 2k8) without a hitch.  But when I tried the same upgrade steps on a 
test server (Linux), I am getting a 404 error when trying to access the 
application.  It’s as if it cannot see modules in the modules db associated 
with the appserver.  I’ve double checked the modules db and root path settings.

In the qconsole, the Content Source properly lists my “[database] ([modules 
db])” combination and I can invoke a loaded module there successfully.  The 
ErrorLog shows nothing and the AccessLog for that port just shows the GET 
attempt with the 404 response code.

Any suggestions?
TIA

-- Paul Williams

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ML8 404 Error

2015-03-20 Thread David Ennis
Rewriter or permissions?

On 20 March 2015 23:17:45 CET, Paul Williams 
 wrote:
>I recently upgraded to ML8 and redeployed my app on my local dev
>environment (Win Serv 2k8) without a hitch.  But when I tried the same
>upgrade steps on a test server (Linux), I am getting a 404 error when
>trying to access the application.  It's as if it cannot see modules in
>the modules db associated with the appserver.  I've double checked the
>modules db and root path settings.
>
>In the qconsole, the Content Source properly lists my "[database]
>([modules db])" combination and I can invoke a loaded module there
>successfully.  The ErrorLog shows nothing and the AccessLog for that
>port just shows the GET attempt with the 404 response code.
>
>Any suggestions?
>TIA
>
>-- Paul Williams
>
>
>
>
>
>___
>General mailing list
>General@developer.marklogic.com
>http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ML8 404 Error

2015-03-20 Thread Erik Hennum
Hi, Paul:

When you say "redeployed my app," what kind of application is it?

If it's a ApplicationBuilder app, it depends on the REST API, which switched 
from the imperative XQuery rewriter to the new declarative XML rewriter.  In 
that case, you might open the appserver in the Admin Ui and check the url 
rewriter field to make sure that upgrade has set the field to

/MarkLogic/rest-api/rewriter.xml

instead of

/MarkLogic/rest-api/rewriter.xqy


Hoping that helps,


Erik Hennum


From: general-boun...@developer.marklogic.com 
[general-boun...@developer.marklogic.com] on behalf of Paul Williams 
[paul.willi...@flatironssolutions.com]
Sent: Friday, March 20, 2015 3:17 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] ML8 404 Error

I recently upgraded to ML8 and redeployed my app on my local dev environment 
(Win Serv 2k8) without a hitch.  But when I tried the same upgrade steps on a 
test server (Linux), I am getting a 404 error when trying to access the 
application.  It’s as if it cannot see modules in the modules db associated 
with the appserver.  I’ve double checked the modules db and root path settings.

In the qconsole, the Content Source properly lists my “[database] ([modules 
db])” combination and I can invoke a loaded module there successfully.  The 
ErrorLog shows nothing and the AccessLog for that port just shows the GET 
attempt with the 404 response code.

Any suggestions?
TIA

-- Paul Williams

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] ML8 404 Error

2015-03-20 Thread Paul Williams
I recently upgraded to ML8 and redeployed my app on my local dev environment 
(Win Serv 2k8) without a hitch.  But when I tried the same upgrade steps on a 
test server (Linux), I am getting a 404 error when trying to access the 
application.  It's as if it cannot see modules in the modules db associated 
with the appserver.  I've double checked the modules db and root path settings.

In the qconsole, the Content Source properly lists my "[database] ([modules 
db])" combination and I can invoke a loaded module there successfully.  The 
ErrorLog shows nothing and the AccessLog for that port just shows the GET 
attempt with the 404 response code.

Any suggestions?
TIA

-- Paul Williams

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] SPARQL dateTime format

2015-03-20 Thread Ed Outhwaite
Hi Charles,

Without seeing the whole SPARQL query or the error, I¹d guess that you¹re
not defining the prefix xsd: in your second query.

The prefix xs: is predefined within MarkLogic; xsd: is not.

See http://docs.marklogic.com/sem:prefixes or
https://docs.marklogic.com/guide/semantics/semantic-searches#id_39225 for
more details.

Regards,

Ed Outhwaite
Associate Consultant




On 3/20/15, 6:54 PM, "Charles Blair"  wrote:

>This works in a SPARQL query:
>
>   ?resourceMap dcterms:created "2015-02-04T14:46:09"^^xs:dateTime
>
>This does not
>
>   ?resourceMap dcterms:created "2015-02-04T14:46:09"^^xsd:dateTime
>
>The input has
>
>dcterms:created "2015-02-04T14:46:09"^^xsd:dateTime;
>
>Is there something wrong with the query handler, or with my query?
>
>___
>General mailing list
>General@developer.marklogic.com
>http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] SPARQL dateTime format

2015-03-20 Thread Charles Blair
This works in a SPARQL query:

   ?resourceMap dcterms:created "2015-02-04T14:46:09"^^xs:dateTime

This does not

   ?resourceMap dcterms:created "2015-02-04T14:46:09"^^xsd:dateTime

The input has

dcterms:created "2015-02-04T14:46:09"^^xsd:dateTime;

Is there something wrong with the query handler, or with my query?

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general