0
QUERY=" PREFIX table: <http://www.daml.org/2003/01/periodictable/PeriodicTable#> \n"+
            "SELECT ?name ?symbol ?weight ?number \n"+
            "FROM <http://www.daml.org/2003/01/periodictable/PeriodicTable.owl> \n" +
            "WHERE \n" +
            "{ \n"+
            "?uranium table:name \"uranium\". \n"+
            "?uranium table:atomicWeight ?uraniumWeight. \n"+
            "?element table:name ?name. \n"+
            "?element table:symbol ?symbol. \n" +
            "?element table:atomicWeight ?weight. \n" +
            "?element table:atomicNumber ?number. \n" +
            "FILTER ?weight > ?uraniumWeight. \n" +
            "} \n"+
            "ORDER BY ASC[?weight] ";

PeriodicalTable オントロジー 例外のクエリ中に、次の例外が発生します。

スレッド「AWT-EventQueue-0」com.hp.hpl.jena.query.QueryParseException での例外: 12 行目、8 列目で「?weight」が発生しました。 「ある」……。

4

1 に答える 1

1

フィルター式を括弧で囲む必要があります。

FILTER (?weight > ?uraniumWeight)
于 2011-04-14T15:29:27.427 に答える