[MarkLogic Dev General] Issues with MarkLogic Function in SPARQL Queries in Query Console

2017-07-31 Thread Steve Anderson
I'm trying to use MarkLogic functions in SPARQL queries. According to https://docs.marklogic.com/guide/semantics/semantic-searches "In addition to SPARQL functions, you can use XQuery or JavaScript built-in functions (for example, functions with the prefix fn, cts, math, or xdmp) in a SPARQL que

[MarkLogic Dev General] Make string XML "safe" in xquery

2017-07-28 Thread Steve Anderson
I have a string like this: A title for the product and I'd like to replace it with A title for the product Basically, I want to make the a valid XML text node, fixing greater than, less than, and ampersands. I thought I could make xdmp:quote do that, but, perhaps because it's Fr

[MarkLogic Dev General] MarkLogic AMIs and Ansible?

2017-07-19 Thread Steve Anderson
Before I dig in to the topic, has anyone tried to use ansible to manage MarkLogic AMIs on AWS? Steve ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Is there a way to delete a stand-alone properties document?

2017-05-19 Thread Steve Anderson
I'm doing some work with stand-along properties documents, and I want to be able to delete them. I know I can delete all the properties with a xdmp:document-set-properties($uri, ()) but that leaves an empty properties document hanging around. Is there a way to delete it? Thanks, Steve _

Re: [MarkLogic Dev General] Search constrained by mime-type?

2016-09-07 Thread Steve Anderson
: Re: [MarkLogic Dev General] Search constrained by mime-type? > > I think you'd need to write a custom constraint > <http://docs.marklogic.com/guide/search-dev/search-api#id_49750> to do > that. > > -- > Dave Cassel <http://davidcassel.net/>, @dmcassel >

[MarkLogic Dev General] Search constrained by mime-type?

2016-09-06 Thread Steve Anderson
Is there a way to constrain a search to a certain mime-type? For example, if I want to search every JSON document, but not any XML documents, how can I do that? Thanks, Steve ___ General mailing list General@developer.marklogic.com Manage your su

Re: [MarkLogic Dev General] Sockets being left in CLOSE_WAIT under load?

2016-07-02 Thread Steve Anderson
elps (and that things are well with you), > > > Erik Hennum > > > -- > *From:* general-boun...@developer.marklogic.com [ > general-boun...@developer.marklogic.com] on behalf of Steve Anderson [ > steve.ander...@gmail.com] > *Sent:* Friday, July 01, 2016 5:02 PM > *To:* M

Re: [MarkLogic Dev General] Sockets being left in CLOSE_WAIT under load?

2016-07-01 Thread Steve Anderson
application initialization. > > * Are you writing and reading to completion? For instance, closing > streams after reading the data. > > > Hoping that helps, > > > Erik Hennum > > > -- > *From:* general-boun...@dev

[MarkLogic Dev General] Sockets being left in CLOSE_WAIT under load?

2016-07-01 Thread Steve Anderson
I'm using version 3.0.5 of the Java API client on a Mac with Oracle's Java 1.8.0_72 and MarkLogic 8.0-5.1. I've noticed that my app under load (multiple requests to different end points) is leaving of sockets between the server and the database in the CLOSE_WAIT state. Under load (thousands of do

[MarkLogic Dev General] Embedded triples in properties + the Java API

2016-03-30 Thread Steve Anderson
Is there a way to add or update triples embedded in a properties document with the Java API? I'm currently handling them using xquery, and wrapping the triples in a semantics element, ie, Value I know how to update, using the Java API, from the example above, norma

[MarkLogic Dev General] Java Client API: Setting the "store" for a SPARQL executeSelect?

2016-03-05 Thread Steve Anderson
I'm using triples in my document properties, and my queries work great when I'm working with the query console, either via a SPARQL query or a XQuery with sem:sparql. When I query with the Java API, though, I don't get any results for triples stored in properties, only in documents. My query is: