Re: [MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread David Ennis
Glad its solved.

Kind Regards,
David Ennis
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread David Ennis
OK.. Here is an example directly form following the manual..

*# my sample xmle file*
*$ cat sample-triple.xml *
http://www.w3.org/1999/02/22-rdf-syntax-ns#";
  xmlns:d="http://example.org/data/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema/";>
  http://example.org/data#item22";>
2013-05-14
27
true
10.50
  

*#my script*
*$ cat sample.sh *
curl -s -X PUT --data-binary '@sample-triple.xml'  \
-H "Content-type: application/rdf+xml"  \
--digest --user "*:***"  \
"http://localhost:/v1/graphs?default";
*#run the command*

*And the result:*
I get a triple in my database (/triplestore/8cfb799a4130f932.xml)


Try a sample like this and see what happens so that we can get a  baseline
in order to properly assist.






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 16 February 2015 at 17:01, Basavaraj Kalloli 
wrote:

> Yeap so I used the MIME type as 'application/rdf+xml' and tried the above
> curl request with PUT but it just fails with the below error:
>
>  xmlns:rapi="http://marklogic.com/rest-api";>400Bad
> RequestXDMP-DOCROOTTEXTXDMP-DOCROOTTEXT:
> xdmp:get-request-body("xml") -- Invalid root text
>
> On Mon, Feb 16, 2015 at 9:28 PM, Anthony Coates 
> wrote:
>
>>  Classification: *Public*
>>
>> SKOS is just RDF, to the question is just around what RDF format has been
>> used (e.g. Turtle vs. RDF/XML).  SKOS doesn’t have its own MIME type.  
>> Cheers,
>> Tony.
>>
>>
>>
>> *From:* general-boun...@developer.marklogic.com [mailto:
>> general-boun...@developer.marklogic.com] *On Behalf Of *David Ennis
>> *Sent:* 16 February 2015 15:56
>> *To:* MarkLogic Developer Discussion
>> *Subject:* Re: [MarkLogic Dev General] Loading Skos triples using Rest
>>
>>
>>
>> HI.
>>
>>
>>
>> The supported formats of triples used with the REST api are listed here
>> with the corresponding mime-type needed for the post request to the server:
>>
>>
>>
>> http://docs.marklogic.com/guide/semantics/loading#id_70682
>>
>>
>>
>> If you are using a format not listed here, then  you will likely need to
>> transform it to one of the supported types.
>>
>>
>>
>>
>>
>>
>> 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/> [image:
>> http://www.hinttech.com/signature/Twitter_HintTech.png]
>> <https://twitter.com/HintTech> [image:
>> http://www.hinttech.com/signature/Facebook_HintTech.png]
>> <http://www.facebook.com/HintTech> [image:
>> http://www.hinttech.com/signature/Linkedin_HintTech.png]
>> <http://www.linkedin.com/company/HintTech>
>>
>>
>>
>> On 16 February 2015 at 16:40, Basavaraj Kalloli <
>> basavarajkall...@gmail.com> wrote:
>>
>> Hi MarkLogic Devs,
>>
>>
>>
>> I want to load triples using the Rest endpoint as documented here:
>>
>>
>>
>> http://docs.marklogic.com/guide/semantics/loading#id_97293
>>
>>
>>
>> But I have a Skos format and I dont see a way to set the MimeType to Skos
>> for it to be loaded. Any ideas how to get this to work?
>>
>>
>>
>> The simplest thing to do is use mlcp to load this, but I cant use mlcp
>> because I am working on a stateless environment where I dont have access to
>> the File System.
>>
>>
>>
>> Cheers,
>>
>> Basu
>>
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>>
>>
>> ---
>> This e-mail may contain confidential and/or privileged information. If
>> you are not the intended recip

Re: [MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread Basavaraj Kalloli
Thanks guys, problem solved the magic is in the syntax of the curl command:

curl --anyauth --user admin:admin -i -X PUT --data-binary *@./sample.xml* \
-H "Content-type: application/rdf+xml" \
http://localhost:8003/v1/graphs\?default

I had missed the *'@./' *before the file name, noob's mistake with curl I
guess. But it works now thanks again.


On Mon, Feb 16, 2015 at 9:37 PM, Anthony Coates 
wrote:

>  Classification: *Public*
>
> The MIME type “application/rdf+xml” will only work if your RDF is RDF/XML
> (I suspect).  Is it, or is it in one of the other RDF formats?  You haven’t
> posted an example so I don’t know.
>
>
>
> Cheers, Tony.
>
>
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of *Basavaraj Kalloli
> *Sent:* 16 February 2015 16:02
>
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Loading Skos triples using Rest
>
>
>
> Yeap so I used the MIME type as 'application/rdf+xml' and tried the above
> curl request with PUT but it just fails with the below error:
>
>
>
>  xmlns:rapi="http://marklogic.com/rest-api";>400Bad
> RequestXDMP-DOCROOTTEXTXDMP-DOCROOTTEXT:
> xdmp:get-request-body("xml") -- Invalid root text
>
>
>
> On Mon, Feb 16, 2015 at 9:28 PM, Anthony Coates 
> wrote:
>
> Classification: *Public*
>
> SKOS is just RDF, to the question is just around what RDF format has been
> used (e.g. Turtle vs. RDF/XML).  SKOS doesn’t have its own MIME type.  Cheers,
> Tony.
>
>
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of *David Ennis
> *Sent:* 16 February 2015 15:56
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Loading Skos triples using Rest
>
>
>
> HI.
>
>
>
> The supported formats of triples used with the REST api are listed here
> with the corresponding mime-type needed for the post request to the server:
>
>
>
> http://docs.marklogic.com/guide/semantics/loading#id_70682
>
>
>
> If you are using a format not listed here, then  you will likely need to
> transform it to one of the supported types.
>
>
>
>
>
>
> 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/> [image:
> http://www.hinttech.com/signature/Twitter_HintTech.png]
> <https://twitter.com/HintTech> [image:
> http://www.hinttech.com/signature/Facebook_HintTech.png]
> <http://www.facebook.com/HintTech> [image:
> http://www.hinttech.com/signature/Linkedin_HintTech.png]
> <http://www.linkedin.com/company/HintTech>
>
>
>
> On 16 February 2015 at 16:40, Basavaraj Kalloli <
> basavarajkall...@gmail.com> wrote:
>
> Hi MarkLogic Devs,
>
>
>
> I want to load triples using the Rest endpoint as documented here:
>
>
>
> http://docs.marklogic.com/guide/semantics/loading#id_97293
>
>
>
> But I have a Skos format and I dont see a way to set the MimeType to Skos
> for it to be loaded. Any ideas how to get this to work?
>
>
>
> The simplest thing to do is use mlcp to load this, but I cant use mlcp
> because I am working on a stateless environment where I dont have access to
> the File System.
>
>
>
> Cheers,
>
> Basu
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
>
> ---
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
> additional EU corporate and regulatory disclosures and to
> http://www.db.com/unitedkingdom/content/privacy.htm for information about
> privacy.
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
> ---
> This e-mail may contain confident

Re: [MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread Anthony Coates
Classification: Public
The MIME type "application/rdf+xml" will only work if your RDF is RDF/XML (I 
suspect).  Is it, or is it in one of the other RDF formats?  You haven't posted 
an example so I don't know.

Cheers, Tony.

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Basavaraj Kalloli
Sent: 16 February 2015 16:02
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Loading Skos triples using Rest

Yeap so I used the MIME type as 'application/rdf+xml' and tried the above curl 
request with PUT but it just fails with the below error:

http://marklogic.com/rest-api";>400Bad
 
RequestXDMP-DOCROOTTEXTXDMP-DOCROOTTEXT:
 xdmp:get-request-body("xml") -- Invalid root text

On Mon, Feb 16, 2015 at 9:28 PM, Anthony Coates 
mailto:anthony.coa...@db.com>> wrote:

Classification: Public
SKOS is just RDF, to the question is just around what RDF format has been used 
(e.g. Turtle vs. RDF/XML).  SKOS doesn't have its own MIME type.  Cheers, Tony.

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 
[mailto:general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>]
 On Behalf Of David Ennis
Sent: 16 February 2015 15:56
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Loading Skos triples using Rest

HI.

The supported formats of triples used with the REST api are listed here with 
the corresponding mime-type needed for the post request to the server:

http://docs.marklogic.com/guide/semantics/loading#id_70682

If you are using a format not listed here, then  you will likely need to 
transform it to one of the supported types.



Kind Regards,
David Ennis


David Ennis
Content Engineer

[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

[http://www.hinttech.com]<http://www.hinttech.com/> 
[http://www.hinttech.com/signature/Twitter_HintTech.png] 
<https://twitter.com/HintTech>  
[http://www.hinttech.com/signature/Facebook_HintTech.png] 
<http://www.facebook.com/HintTech>  
[http://www.hinttech.com/signature/Linkedin_HintTech.png] 
<http://www.linkedin.com/company/HintTech>

On 16 February 2015 at 16:40, Basavaraj Kalloli 
mailto:basavarajkall...@gmail.com>> wrote:
Hi MarkLogic Devs,

I want to load triples using the Rest endpoint as documented here:

http://docs.marklogic.com/guide/semantics/loading#id_97293

But I have a Skos format and I dont see a way to set the MimeType to Skos for 
it to be loaded. Any ideas how to get this to work?

The simplest thing to do is use mlcp to load this, but I cant use mlcp because 
I am working on a stateless environment where I dont have access to the File 
System.

Cheers,
Basu

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



---
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures and to 
http://www.db.com/unitedkingdom/content/privacy.htm for information about 
privacy.

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



---
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures and to 
http://www.db.com/unitedkingdom/content/privacy.htm for information about 
privacy.
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread David Ennis
That's a different story alltogether - an actual error message:

perhaps start with the sample for rdf-xml from ML and work from there:

http://www.w3.org/1999/02/22-rdf-syntax-ns#";
  xmlns:d="http://example.org/data/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema/";>
  http://example.org/data#item22";>
2013-05-14
27
true
10.50
  





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 16 February 2015 at 17:01, Basavaraj Kalloli 
wrote:

> Yeap so I used the MIME type as 'application/rdf+xml' and tried the above
> curl request with PUT but it just fails with the below error:
>
>  xmlns:rapi="http://marklogic.com/rest-api";>400Bad
> RequestXDMP-DOCROOTTEXTXDMP-DOCROOTTEXT:
> xdmp:get-request-body("xml") -- Invalid root text
>
> On Mon, Feb 16, 2015 at 9:28 PM, Anthony Coates 
> wrote:
>
>>  Classification: *Public*
>>
>> SKOS is just RDF, to the question is just around what RDF format has been
>> used (e.g. Turtle vs. RDF/XML).  SKOS doesn’t have its own MIME type.  
>> Cheers,
>> Tony.
>>
>>
>>
>> *From:* general-boun...@developer.marklogic.com [mailto:
>> general-boun...@developer.marklogic.com] *On Behalf Of *David Ennis
>> *Sent:* 16 February 2015 15:56
>> *To:* MarkLogic Developer Discussion
>> *Subject:* Re: [MarkLogic Dev General] Loading Skos triples using Rest
>>
>>
>>
>> HI.
>>
>>
>>
>> The supported formats of triples used with the REST api are listed here
>> with the corresponding mime-type needed for the post request to the server:
>>
>>
>>
>> http://docs.marklogic.com/guide/semantics/loading#id_70682
>>
>>
>>
>> If you are using a format not listed here, then  you will likely need to
>> transform it to one of the supported types.
>>
>>
>>
>>
>>
>>
>> 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/> [image:
>> http://www.hinttech.com/signature/Twitter_HintTech.png]
>> <https://twitter.com/HintTech> [image:
>> http://www.hinttech.com/signature/Facebook_HintTech.png]
>> <http://www.facebook.com/HintTech> [image:
>> http://www.hinttech.com/signature/Linkedin_HintTech.png]
>> <http://www.linkedin.com/company/HintTech>
>>
>>
>>
>> On 16 February 2015 at 16:40, Basavaraj Kalloli <
>> basavarajkall...@gmail.com> wrote:
>>
>> Hi MarkLogic Devs,
>>
>>
>>
>> I want to load triples using the Rest endpoint as documented here:
>>
>>
>>
>> http://docs.marklogic.com/guide/semantics/loading#id_97293
>>
>>
>>
>> But I have a Skos format and I dont see a way to set the MimeType to Skos
>> for it to be loaded. Any ideas how to get this to work?
>>
>>
>>
>> The simplest thing to do is use mlcp to load this, but I cant use mlcp
>> because I am working on a stateless environment where I dont have access to
>> the File System.
>>
>>
>>
>> Cheers,
>>
>> Basu
>>
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>>
>>
>> ---
>> This e-mail may contain confidential and/or privileged information. If
>> you are not the intended recipient (or have received this e-mail in error)
>> please notify the sender immediately and delete this e-mail. Any
>> unauthorized copying, disclosure or distribution of the material in this
>> e-mail is strictly forbidden.
>>
>> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
>> additional EU corporate and regulatory disclosures and to
>> http://www.db.com/unitedkingdom/content/privacy.htm for information
>> about privacy.
>>
>> ___
>> 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
>
>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread David Ennis
You can pick form the list provided  - depending on what you are able to do
with your data.

The page previously provided does not just list each type supported, but
also has a small description/sample/discussion of each one to help you
decide.





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 16 February 2015 at 16:58, Anthony Coates  wrote:

>  Classification: *Public*
>
> SKOS is just RDF, to the question is just around what RDF format has been
> used (e.g. Turtle vs. RDF/XML).  SKOS doesn’t have its own MIME type.  Cheers,
> Tony.
>
>
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of *David Ennis
> *Sent:* 16 February 2015 15:56
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Loading Skos triples using Rest
>
>
>
> HI.
>
>
>
> The supported formats of triples used with the REST api are listed here
> with the corresponding mime-type needed for the post request to the server:
>
>
>
> http://docs.marklogic.com/guide/semantics/loading#id_70682
>
>
>
> If you are using a format not listed here, then  you will likely need to
> transform it to one of the supported types.
>
>
>
>
>
>
> 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/> [image:
> http://www.hinttech.com/signature/Twitter_HintTech.png]
> <https://twitter.com/HintTech> [image:
> http://www.hinttech.com/signature/Facebook_HintTech.png]
> <http://www.facebook.com/HintTech> [image:
> http://www.hinttech.com/signature/Linkedin_HintTech.png]
> <http://www.linkedin.com/company/HintTech>
>
>
>
> On 16 February 2015 at 16:40, Basavaraj Kalloli <
> basavarajkall...@gmail.com> wrote:
>
> Hi MarkLogic Devs,
>
>
>
> I want to load triples using the Rest endpoint as documented here:
>
>
>
> http://docs.marklogic.com/guide/semantics/loading#id_97293
>
>
>
> But I have a Skos format and I dont see a way to set the MimeType to Skos
> for it to be loaded. Any ideas how to get this to work?
>
>
>
> The simplest thing to do is use mlcp to load this, but I cant use mlcp
> because I am working on a stateless environment where I dont have access to
> the File System.
>
>
>
> Cheers,
>
> Basu
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
> ---
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
> additional EU corporate and regulatory disclosures and to
> http://www.db.com/unitedkingdom/content/privacy.htm for information about
> privacy.
>
> ___
> 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] Loading Skos triples using Rest

2015-02-16 Thread Basavaraj Kalloli
Yeap so I used the MIME type as 'application/rdf+xml' and tried the above
curl request with PUT but it just fails with the below error:

http://marklogic.com/rest-api";>400Bad
RequestXDMP-DOCROOTTEXTXDMP-DOCROOTTEXT:
xdmp:get-request-body("xml") -- Invalid root text

On Mon, Feb 16, 2015 at 9:28 PM, Anthony Coates 
wrote:

>  Classification: *Public*
>
> SKOS is just RDF, to the question is just around what RDF format has been
> used (e.g. Turtle vs. RDF/XML).  SKOS doesn’t have its own MIME type.  Cheers,
> Tony.
>
>
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of *David Ennis
> *Sent:* 16 February 2015 15:56
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Loading Skos triples using Rest
>
>
>
> HI.
>
>
>
> The supported formats of triples used with the REST api are listed here
> with the corresponding mime-type needed for the post request to the server:
>
>
>
> http://docs.marklogic.com/guide/semantics/loading#id_70682
>
>
>
> If you are using a format not listed here, then  you will likely need to
> transform it to one of the supported types.
>
>
>
>
>
>
> 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/> [image:
> http://www.hinttech.com/signature/Twitter_HintTech.png]
> <https://twitter.com/HintTech> [image:
> http://www.hinttech.com/signature/Facebook_HintTech.png]
> <http://www.facebook.com/HintTech> [image:
> http://www.hinttech.com/signature/Linkedin_HintTech.png]
> <http://www.linkedin.com/company/HintTech>
>
>
>
> On 16 February 2015 at 16:40, Basavaraj Kalloli <
> basavarajkall...@gmail.com> wrote:
>
> Hi MarkLogic Devs,
>
>
>
> I want to load triples using the Rest endpoint as documented here:
>
>
>
> http://docs.marklogic.com/guide/semantics/loading#id_97293
>
>
>
> But I have a Skos format and I dont see a way to set the MimeType to Skos
> for it to be loaded. Any ideas how to get this to work?
>
>
>
> The simplest thing to do is use mlcp to load this, but I cant use mlcp
> because I am working on a stateless environment where I dont have access to
> the File System.
>
>
>
> Cheers,
>
> Basu
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
> ---
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
> additional EU corporate and regulatory disclosures and to
> http://www.db.com/unitedkingdom/content/privacy.htm for information about
> privacy.
>
> ___
> 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] Loading Skos triples using Rest

2015-02-16 Thread Anthony Coates
Classification: Public
SKOS is just RDF, to the question is just around what RDF format has been used 
(e.g. Turtle vs. RDF/XML).  SKOS doesn't have its own MIME type.  Cheers, Tony.

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of David Ennis
Sent: 16 February 2015 15:56
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Loading Skos triples using Rest

HI.

The supported formats of triples used with the REST api are listed here with 
the corresponding mime-type needed for the post request to the server:

http://docs.marklogic.com/guide/semantics/loading#id_70682

If you are using a format not listed here, then  you will likely need to 
transform it to one of the supported types.



Kind Regards,
David Ennis


David Ennis
Content Engineer

[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

[http://www.hinttech.com]<http://www.hinttech.com/> 
[http://www.hinttech.com/signature/Twitter_HintTech.png] 
<https://twitter.com/HintTech>  
[http://www.hinttech.com/signature/Facebook_HintTech.png] 
<http://www.facebook.com/HintTech>  
[http://www.hinttech.com/signature/Linkedin_HintTech.png] 
<http://www.linkedin.com/company/HintTech>

On 16 February 2015 at 16:40, Basavaraj Kalloli 
mailto:basavarajkall...@gmail.com>> wrote:
Hi MarkLogic Devs,

I want to load triples using the Rest endpoint as documented here:

http://docs.marklogic.com/guide/semantics/loading#id_97293

But I have a Skos format and I dont see a way to set the MimeType to Skos for 
it to be loaded. Any ideas how to get this to work?

The simplest thing to do is use mlcp to load this, but I cant use mlcp because 
I am working on a stateless environment where I dont have access to the File 
System.

Cheers,
Basu

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



---
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures and to 
http://www.db.com/unitedkingdom/content/privacy.htm for information about 
privacy.
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread David Ennis
HI.

The supported formats of triples used with the REST api are listed here
with the corresponding mime-type needed for the post request to the server:

http://docs.marklogic.com/guide/semantics/loading#id_70682

If you are using a format not listed here, then  you will likely need to
transform it to one of the supported types.



Kind Regards,
David Ennis


David Ennis
*Content Engineer*

[image: HintTech]  
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] 
  


On 16 February 2015 at 16:40, Basavaraj Kalloli 
wrote:

> Hi MarkLogic Devs,
>
> I want to load triples using the Rest endpoint as documented here:
>
> http://docs.marklogic.com/guide/semantics/loading#id_97293
>
> But I have a Skos format and I dont see a way to set the MimeType to Skos
> for it to be loaded. Any ideas how to get this to work?
>
> The simplest thing to do is use mlcp to load this, but I cant use mlcp
> because I am working on a stateless environment where I dont have access to
> the File System.
>
> Cheers,
> Basu
>
> ___
> 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] Loading Skos triples using Rest

2015-02-16 Thread Kevin Ford
Hi Basu,

Take a look at:

http://docs.marklogic.com/REST/PUT/v1/graphs

See if that works for you.

Yours,
Kevin


From: Basavaraj Kalloli 
mailto:basavarajkall...@gmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Monday, February 16, 2015 at 9:40 AM
To: "general@developer.marklogic.com<mailto:general@developer.marklogic.com>" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Loading Skos triples using Rest

Hi MarkLogic Devs,

I want to load triples using the Rest endpoint as documented here:

http://docs.marklogic.com/guide/semantics/loading#id_97293

But I have a Skos format and I dont see a way to set the MimeType to Skos for 
it to be loaded. Any ideas how to get this to work?

The simplest thing to do is use mlcp to load this, but I cant use mlcp because 
I am working on a stateless environment where I dont have access to the File 
System.

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


[MarkLogic Dev General] Loading Skos triples using Rest

2015-02-16 Thread Basavaraj Kalloli
Hi MarkLogic Devs,

I want to load triples using the Rest endpoint as documented here:

http://docs.marklogic.com/guide/semantics/loading#id_97293

But I have a Skos format and I dont see a way to set the MimeType to Skos
for it to be loaded. Any ideas how to get this to work?

The simplest thing to do is use mlcp to load this, but I cant use mlcp
because I am working on a stateless environment where I dont have access to
the File System.

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