Subobject

From semantic-mediawiki.org
Jump to: navigation, search

A subobject is a Semantic MediaWiki construct that refers to an object that have its own property-value pairs just like any other wiki page, but in reality it does not have a page in the wiki.

Notes

A subobject is an entity object that is independent from the embedding subject, it is distinguished from it and is therefore addressable and uniquely identifiable by its name or identifier as individual resource.

Value statements ([[SomeProperty::SomeValue]]) denoted by a subobject belong to a subobject and not a subject (in wiki terms an article or page where the #subobject is embedded) therefore when querying information about for example SomeProperty, the subobject is identified as container of related statements.

Example

Subject: Foo
   |      |- Has subobject: _3099b029e9dde9c5ae1c19f2ec546f5f(anonymous, generated)
   |                |- SomeProperty::SomeValue
   |      |- Has subobject: Bar (named)
   |                |- SomeProperty::SomeValue
   |- SomeProperty::SomeValue

Example RDF output of some subobject entities with value statements.

<swivt:Subject rdf:about="http://example.org/id/Foo">
	<rdfs:label>Foo</rdfs:label>
	<swivt:page rdf:resource="http://example.org/index.php/Foo"/>
	<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
	<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Foo</swivt:wikiPageSortKey>
	<property:SomeProperty rdf:resource="http://example.org/id/SomeValue"/>
	<property:Has_subobject rdf:resource="http://example.org/id/Foo-23_3099b029e9dde9c5ae1c19f2ec546f5f"/>
	<property:Has_subobject rdf:resource="http://example.org/id/Foo-23Bar"/>
</swivt:Subject>
<swivt:Subject rdf:about="http://example.org/id/Foo-23_3099b029e9dde9c5ae1c19f2ec546f5f">
	<swivt:masterPage rdf:resource="http://example.org/id/Foo"/>
	<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
	<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Foo</swivt:wikiPageSortKey>
	<property:SomeProperty rdf:resource="http://example.org/id/SomeValue"/>
</swivt:Subject>
<swivt:Subject rdf:about="http://example.org/id/Foo-23Bar">
	<swivt:masterPage rdf:resource="http://example.org/id/Foo"/>
	<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
	<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Foo</swivt:wikiPageSortKey>
	<property:SomeProperty rdf:resource="http://example.org/id/SomeValue"/>
</swivt:Subject>

Internally several concepts use the technical representation of a subobject to create individual entities and include:

See also

For more information, see the help page on adding subobjects as well as on querying subobjects.