Subobject identifiers (named vs. anonymous)

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

An example to clarify output characteristicsCiteRef::mail:5065801 when using different identifier methodsCiteRef::thread:srf:sobj:num in subobjects.

Using an anonymous identifier

Help:Adding_subobjects#Anonymous_identifier

{{#subobject:
 |Term=SPARQL
 |Has keyword=SPARQL|+sep=,
 |Has abstract=SPARQL Protocol and RDF Query Language (SPARQL) defines a query language for RDF data, analogous to the Structured Query Language (SQL) for relational databases. A family of standards of the World Wide Web Consortium. See also SPARQL 1.1
 |Has source=https://www.w3.org/TR/ld-glossary/#sparql
 |@category=Glossary,W3 Glossary|+sep=,
}}

{{#subobject:

|Term=SPARQL
|Has keyword=SPARQL|+sep=,
|Has abstract=SPARQL Protocol and RDF Query Language (SPARQL) defines a query language for RDF data, analogous to the Structured Query Language (SQL) for relational databases. A family of standards of the World Wide Web Consortium. See also SPARQL 1.1
|Has source=https://www.w3.org/TR/ld-glossary/#sparql
|@category=Glossary,W3 Glossary|+sep=,

}}

Using a dedicated named identifier

Help:Adding_subobjects#Named_identifier

{{#subobject:001
 |Term=SPARQL
 |Has keyword=SPARQL|+sep=,
 |Has abstract=SPARQL Protocol and RDF Query Language (SPARQL) defines a query language for RDF data, analogous to the Structured Query Language (SQL) for relational databases. A family of standards of the World Wide Web Consortium. See also SPARQL 1.1
 |Has source=https://www.w3.org/TR/ld-glossary/#sparql
 |@category=Glossary,W3 Glossary|+sep=,
}}

{{#subobject:001

|Term=SPARQL
|Has keyword=SPARQL|+sep=,
|Has abstract=SPARQL Protocol and RDF Query Language (SPARQL) defines a query language for RDF data, analogous to the Structured Query Language (SQL) for relational databases. A family of standards of the World Wide Web Consortium. See also SPARQL 1.1
|Has source=https://www.w3.org/TR/ld-glossary/#sparql
|@category=Glossary,W3 Glossary|+sep=,

}}

Standard table output

{{#ask: [[Category:W3 Glossary]]
 |?Term
 |?Has abstract
}}

{{#ask:

|?Term
|?Has abstract

}}

Template table output

Help:Use the template format to create tabular output

{{#ask: [[Category:W3 Glossary]]
 |?Term
 |?Has abstract
 |template=Glossary.table.layout
 |introtemplate=Glossary.table.header
 |outrotemplate=Glossary.table.footer
 |format=template
 |link=none
}}

{{#ask:

|?Term
|?Has abstract
|template=Glossary.table.layout
|introtemplate=Glossary.table.header
|outrotemplate=Glossary.table.footer
|format=template
|link=none

}}

{{#scite:mail:5065801

|type=mail
|citation text=http://wikimedia.7.x6.nabble.com/Query-results-include-quot-001-quot-and-quot-002-quot-appended-to-titles-how-to-remove-td5065801.html

}}{{#scite:thread:srf:sobj:num

|type=discussion
|citation text=Incorrect Sum if more than one property has same numerical value

}}