問題タブ [blank-nodes]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
rdf - SWRL は Jena として空白ノードの推論をサポートしていますか?
ほとんどの推論エンジンは、ユーザーが独自の推論ルールを追加できるSWRLをサポートしています。ただし、私のコンテキストでは、これらのユーザー ルールでは、ルールの結果側で空白ノードを推論する必要があります。
Jena はmakeTemp
、この作業を行うための組み込みメソッドを提供します。詳細については、こちらを参照してください。
例を次に示します。
私の質問は:
SWRL はルールの結果側で空白ノードの推論をサポートしていますか? SWRL w3cは、この特定の状況について何も述べていません。
php - EasyRDF がリソースをネストしないようにする
EasyRDF で作成した RDF グラフがあります。
上記は正しくありません - の空白ノードへの参照は であるfoaf:primaryTopic
必要があります_:genid1
。
その行を次のように変更すると
EasyRdf は、次のようにリソースをネストします。
EasyRdf によるノードのネストを停止するにはどうすればよいですか? 出力を最初の例と同じにしたいのです_:genid1
が、foaf:primaryTopic
.
sparql - SPARQL query turtle file with blank nodes in the graph
I'm trying to understand blank nodes in turtle correctly, and I need to know if I have understood them correctly.
Suppose we had a turtle file:
and we have SPARQL query:
This would only return the email of person 1, because ?x
binds to the blank node label _:a
... So my question is if an undefined variable ?x
can still bind to a blank node that has a label, just like it would if it was not blank... So in this example, return will be:
Would that be correct? Thanks.
java - Sesame での空白ノードの処理
Model.filter() にオブジェクトを格納したいと思います。しかし、オブジェクトが空のノードである場合は、対応するトリプルを取得して実際のオブジェクトを保存したいと考えています。
Model.filter() の問題は、空のノード (オブジェクト) が _:a の場合、返される「値」が:xxxxxxxxxxa のようなものになることです。これは問題ありませんが、モデルに ( :xxxxxxxxxxa,p,o) がある場合、model.filter(_:xxxxxxxxxxxa,null,null) を使用しようとすると失敗します。
これは、問題をより詳細に説明するソース コードです。
前もって感謝します。