[Mulgara-general] inserts and TQL

Chuck Borromeo cborromeo3 at yahoo.com
Thu Sep 24 15:01:57 UTC 2009


Hello,
  Alex- I must have typed something wrong in my message.  http://sw.dbmi.pitt.edu/ctsa is the name of my graph.  

Here is an update.  I modified my code to do the following:

1.  drop the http://sw.dbmi.pitt.edu/ctsa graph using TQL
2.  create the graph using TQL
3.  load RDF graphs into http://sw.dbmi.pitt.edu/ctsa graph using TQL
4.  add some triples using TQL

Using this process everything worked fine.  Based on what I saw, I think the "Error 500 Unable to create triple: Could not commit modify: sw.dbmi.pitt.edu" might be tied to the fact that I originally created the graph using the webui load process.  Is it possible that by creating the graph using the webui page that it cannot be updated using TQL?  I noticed a concept of a graphType in the source code.  Perhaps the graphType is different if a graph is created using a TQL command versus using the webui?  Maybe this difference prevents the TQL insert command from working?

Thanks,
Chuck



----- Original Message ----
From: Alex Hall <alexhall at revelytix.com>
To: Mulgara General <mulgara-general at mulgara.org>
Sent: Tuesday, September 22, 2009 8:07:37 PM
Subject: Re: [Mulgara-general] inserts and TQL

Chuck Borromeo wrote:
> Hello,
>   I am running into an error attempting to insert data into mulgara.  I created 2 graphs in mulgara: http://sw.dbmi.pitt.edu and http://testgraph.  I created the http://sw.dbmi.pitt.edu through the webui interface by loading an RDF file into the graph.  The other graph I created using REST and TQL commands (create <http://testgraph>).
> 
> I am trying to use TQL to insert a triple into the http://sw.dbmi.pitt.edu graph.  Here is my URL:
> 
> http://localhost:8080/tql/?graph=http://sw.dbmi.pitt.edu/ctsa&s=http://www.ccmb.med.umich.edu/biositemap-CTSA-Michigan.rdf&p=http://www.w3.org/1999/02/22-rdf-syntax-ns#type&o=http://biositemaps.bioontology.org/biositemapsURL
> 
> However, I get this error message:
> 
> Error 500 Unable to create triple: Could not commit modify: sw.dbmi.pitt.edu
> 
> If I use the exact same command on the http://testgraph graph the insert works fine.  Is there a difference between the graphs based on how they were created?

I see a discrepancy here between the graph URIs.  You say the graph you
created via the webui is "http://sw.dbmi.pitt.edu" (just a hostname) yet
the graph URI in the insert request is "http://sw.dbmi.pitt.edu/ctsa"
(hostname and a path).  The graph URI in the insert request needs to
exactly match the one used with the insert command.

Regards,
Alex
_______________________________________________
Mulgara-general mailing list
Mulgara-general at mulgara.org
http://mulgara.org/mailman/listinfo/mulgara-general



      




More information about the Mulgara-general mailing list