S3DB - Simple and Sloppy Semantic Database
To edit rules/resources/statements using teh API, use the tag <set> for the parameters that are to be changed. The elements needed are:
the URL where your S3DB is installed (if in you local computer, this would be something like http://localhost/s3db)
the key created through the interface
query file/string built in XML.
1. The query has a structure similar to the following XML template:
<?xml version="1.0"?>
<S3QL>
<key>...</key>
<edit> ... </edit>
<where>
<rule_id>...</rule_id>
</where>
<set>
<object>...</object>
</set>
</S3QL>
2. Call the query using the URL + S3QL.php
Ex: http://localhost/s3db1.0/S3QL.php?query=<S3QL><key>sCIUdwfWY3ihujX</key></S3QL>...
OR
Call the query from a remote location:
http://localhost/s3db1.0/S3QL.php?query=http://myserver/query.xml
3. Possible edit queries:
Edit |
Where |
Set |
Syntax |
project |
project_id |
project_name, project_description |
|
class |
class_id |
entity, notes |
|
instance |
instance_id |
class_id, notes |
|
rule |
rule_id |
subject, verb, object, notes |
|
statement |
statement_id |
value, notes |
|
4. To delete any element, specify the id, and add a tag for delete confirmation.
Delete |
Where |
Syntax |
project |
project_id |
|
class |
class_id |
|
instance |
instance_id |
|
rule |
rule_id |
|
statement |
statement_id |
|
Previous/Next/Table of Contents
Email: helenadeus@gmail.com, almeida.jonas@gmail.com
|