Triple

A triple can be included inside a rule's conditions element. It is used check for an assertion within a graph. If such an assertion exists, the rule may match, assuming that all the conditions match. If the assertion does not exist, the rule will not match. Both the subject and object attributes may be variables.

The subject of a triple is a RDF resource. In an RDF file this would usually be an RDF Description element. The predicate would be a child element or property. For example, for a bookmark resource, the name and URL would be predicates. They should be specified in their full URI form. The object is the value of the RDF property.

More information about triple

triple 要素はルールの conditions 要素内に置くことができる要素であり、グラフ内での言明 (assertion) のチェックに利用される。そのような言明が存在するならば条件が満たされ、すべての条件が満たされたとするなら、ルールは合致するものとされる。言明が存在しなければ、ルールは合致しないものとされる。 subject 属性と object 属性のいずれも変数にすることができる。

triple 要素の subject 属性は RDF リソースである。 RDF ファイルでは普通 RDF Description 要素で示される。 predicate 属性は子要素かあるいはプロパティで示される。例えばブックマークのリソースでは、名前と URL は predicates である。これらは完全 URI 形式で指定する必要がある。 object 属性は RDF プロパティの値である。

triple の追加情報

プロパティとメソッド:

object predicate subject

属性:

XUL Element から継承:

align allowevents allownegativeassertions class coalesceduplicatearcs
collapsed container containment context contextmenu
datasources debug dir empty equalsize
flags flex height hidden id
insertafter insertbefore left maxheight maxwidth
menu minheight minwidth mousethrough observes
ordinal orient pack persist popup
position ref removeelement sortDirection sortResource
sortResource2 statustext style template tooltip
tooltiptext top uri wait-cursor width

プロパティとメソッド:

XUL Element から継承:

align
allowEvents
blur
boxObject
boxObject.element
boxObject.getLookAndFeelMetric
boxObject.height
boxObject.screenX
boxObject.screenY
boxObject.width
boxObject.x
boxObject.y
builder
className
click
collapsed
contextMenu
controllers
database
datasources
dir
doCommand
flex
focus
getElementsByAttribute
height
hidden
id
left
maxHeight
maxWidth
menu
minHeight
minWidth
observes
ordinal
orient
pack
persist
ref
resource
statusText
style
tooltip
tooltipText
top
width

Element から継承:

addEventListener
appendChild
attributes
childNodes
cloneNode
dispatchEvent
firstChild
getAttribute
getAttributeNS
getAttributeNode
getAttributeNodeNS
getElementsByTagName
getElementsByTagNameNS
hasAttribute
hasAttributeNS
hasAttributes
hasChildNodes
insertBefore
isSupported
lastChild
localName
namespaceURI
nextSibling
nodeName
nodeType
nodeValue
normalize
ownerDocument
parentNode
prefix
previousSibling
removeAttribute
removeAttributeNS
removeAttributeNode
removeChild
removeEventListener
replaceChild
setAttribute
setAttributeNS
setAttributeNode
setAttributeNodeNS
tagName

object

The object of a triple. It can be a variable reference, an RDF node URI, or an RDF literal value.

triple 要素の object。変数参照、 RDF ノードの URI、 RDF リテラル値をとり得る。

predicate

The predicate or property to match. This must be a URI of the property.

合致する predicate またはプロパティ。これはプロパティの URI でなければならない。

subject

The subject of a triple. It can be a variable reference, an RDF node URI, or an RDF literal value.

triple 要素の subject。変数参照、 RDF ノードの URI、 RDF リテラル値をとり得る。


Copyright (C) 1999 - 2004 XulPlanet.com