Subobject identifiers (named vs. anonymous)

From semantic-mediawiki.org
Jump to: navigation, search
ExamplesExamples/Subobject identifiers (named vs. anonymous)

An example to clarify output characteristics1 when using different identifier methods2 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=,
}}


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=,
}}


Standard table output

{{#ask: [[Category:W3 Glossary]]
 |?Term
 |?Has abstract
}}
 TermHas abstract
Examples/Subobject identifiers (named vs. anonymous)SPARQLSPARQL 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
Examples/Subobject identifiers (named vs. anonymous)#001SPARQLSPARQL 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

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
}}
Term Abstract
SPARQL

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

SPARQL

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