我下面的教程在這裏:索恩斯GraphDB查詢返回錯誤
http://developers.sones.de/wiki/doku.php?id=quickreference:fiveminuteguide
但是當我複製和木馬後門粘貼此命令
CREATE VERTICES
ABSTRACT Entity ATTRIBUTES (String Name),
University EXTENDS Entity ATTRIBUTES(SET<Student> Students),
City EXTENDS Entity ATTRIBUTES(SET<University> Universities),
Student EXTENDS Entity ATTRIBUTES(Integer Age) BACKWARDEDGES(University.Students StudiesAt)
結果,產生錯誤:
[email protected] [gql-mode] > CREATE VERTICES ABSTRACT Entity ATTRIBUTES (String Name), University EXTENDS Entity ATTRIBUTES(SET<Student> Students), City EXTENDS Entity ATTRIBUTES(SET<University> Universities), Student EXTENDS Entity ATTRIBUTES(Integer Age) BACKWARDEDGES(University.Students StudiesAt) { "query": "CREATE VERTICES ABSTRACT Entity ATTRIBUTES (String Name), University EXTENDS Entity ATTRIBUTES(SET Students), City EXTENDS Entity ATTRIBUTES(SET Universities), Student EXTENDS Entity ATTRIBUTES(Integer Age) BACKWARDEDGES(University.Students StudiesAt)", "result": "Failed", "duration": [
0,
"ms" ], "warnings": [], "errors": [
{
"code": "sones.GraphDB.Errors.Error_GqlSyntax",
"description": "Syntax error in query: [CREATE VERTICES ABSTRACT Entity ATTRIBUTES (String Name), University EXTENDS Entity ATTRIBUTES(SET Students), City EXTENDS Entity ATTRIBUTES(SET Universities), Student EXTENDS Entity ATTRIBUTES(Integer Age) BACKWARDEDGES(University.Students StudiesAt)]\n\n gql: [Syntax error, expected: index,types,abstract,type,]\n\nAt position: 1, 8"
} ], "results": [] }
而不是此預期結果:
{
"query": "CREATE VERTICES ABSTRACT Entity ATTRIBUTES (String Name), City EXTENDS Entity ATTRIBUTES(SET Universities), University EXTENDS Entity ATTRIBUTES(SET Students), Student EXTENDS Entity ATTRIBUTES(Integer Age) BACKWARDEDGES(University.Students StudiesAt)",
"result": "Successful",
"duration": [
660,
"ms"
],
"warnings": [],
"errors": [],
"results": [
{
"DBType": "Entity",
"UUID": "f1cf505d-3dc9-4ec0-b777-ca1c0075d835",
"REVISION": "20102110.124020.0492167(8edd08775ce5754581140b203163f93d)",
"EDITION": "DefaultEdition"
},
{
"DBType": "City",
"UUID": "89dc4d40-2046-4c0b-8599-6c0665ae62a5",
"REVISION": "20102110.124020.1952135(8edd08775ce5754581140b203163f93d)",
"EDITION": "DefaultEdition"
},
{
"DBType": "University",
"UUID": "274f1216-7ba0-409d-b466-668157b2a6ee",
"REVISION": "20102110.124020.3592086(8edd08775ce5754581140b203163f93d)",
"EDITION": "DefaultEdition"
},
{
"DBType": "Student",
"UUID": "7dec86d3-c62d-49cc-840a-93203bb821dc",
"REVISION": "20102110.124020.5402167(8edd08775ce5754581140b203163f93d)",
"EDITION": "DefaultEdition"
}
]
}
那麼是什麼問題(我用他們自己最新的二進制版本,我甚至沒有自己編譯它)。
他們甚至沒有一個論壇:(。在網站上
有一個免費的開源版本,據我所知。我想要.NET而不是Java。 db4o的目的不一樣。 – user310291 2011-02-16 21:40:31