
Cannot evaluate Script:org.topbraid.core.servlet.HttpErrorException: Failed service request /qudt_quantitykind/qudt/refreshApplicableUnits: Attempt to change a read-only graph rejected
Here's my service definition code:
qudt:refreshApplicableUnits
rdf:type dash:GraphService ;
dash:js """graph.update(`
DELETE {
?qk qudt:applicableUnit ?unit .
}
INSERT {
?newqk qudt:applicableUnit ?newunit .
}
WHERE {
{
?qk a qudt:QuantityKind .
?qk qudt:applicableUnit ?unit .
}
UNION
{
?newqk a qudt:QuantityKind .
?newqk qudt:inferredApplicableUnit ?newunit .
} .
}
`)
""" ;
dash:responseContentType "void" ;
rdfs:label "Refresh the applicableUnits property" ;
.
On 1 Apr 2021, at 10:26 am, Steve Ray <st...@steveray.com> wrote:
Hi, I have a question about accomplishing the above.1. How do I make my graph not a "read-only" graph?
<image.png>
There must be a setting I'm missing!Thanks in advance for your help.Steve
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAGUep84svBqwK9G7545srJ5FziguTvK3JhUuUN8ztVgi5ZOkug%40mail.gmail.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/DB84CB8F-AC83-4C31-8537-AD0E4C600B03%40topquadrant.com.
On 4 Apr 2021, at 3:05 am, Steve Ray <st...@steveray.com> wrote:Thanks for your always informative help. I did get this to work, only to realize that I now have a web service that will update the graph living in the EDG database, but not a web service that will update the Turtle file on my local machine, which is ultimately my goal.
So, I have learned about dash:GraphService and dash:ResourceService, and now am starting to learn about dash:ModifyAction as something I may need to use. However, is ModifyAction designed more for creating ui actions in EDG?
Should I just be using dash:GraphService and use a call to graph.uploadedFile? If so, after modifying the graph, is there some sort of graph.saveFile (which I cannot find).
Also, why is graph.uploadedFile crossed out in the script editor pull-down?
<image.png>
I'm hoping these questions are of general interest. Basically I'm trying to use web services to maintain local files, and I call these web services from shell scripts. That's how we publish all our web pages.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAGUep84xVf6xq0ngAQgE%2B9PBNSkp-Xv4EUR8UD5_z6yAbO2Pbg%40mail.gmail.com.
On Apr 3, 2021, at 6:53 PM, Holger Knublauch <hol...@topquadrant.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/FEEFF5EF-453E-41BC-8CD3-CEB67F02DC89%40topquadrant.com.