This HTML5 document contains 30 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
dctermshttp://purl.org/dc/terms/
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n12http://vos.openlinksw.com/dataspace/services/wiki/
oplhttp://www.openlinksw.com/schema/attribution#
n2http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/
n18http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtSPARQLPrefOrder/sioc.
dchttp://purl.org/dc/elements/1.1/
n8http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n13http://rdfs.org/sioc/services#
n11http://vos.openlinksw.com/dataspace/person/dav#
siocthttp://rdfs.org/sioc/types#
n16http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n14http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
n6http://vos.openlinksw.com/dataspace/%28NULL%29/wiki/VOS/
n15http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n11:this
foaf:made
n2:VirtSPARQLPrefOrder
Subject Item
n8:this
sioc:creator_of
n2:VirtSPARQLPrefOrder
Subject Item
n12:item
n13:services_of
n2:VirtSPARQLPrefOrder
Subject Item
n14:this
sioc:creator_of
n2:VirtSPARQLPrefOrder
Subject Item
n16:VOS
sioc:container_of
n2:VirtSPARQLPrefOrder
atom:entry
n2:VirtSPARQLPrefOrder
atom:contains
n2:VirtSPARQLPrefOrder
Subject Item
n2:VirtSPARQLPrefOrder
rdf:type
sioct:Comment atom:Entry
dcterms:created
2017-06-13T05:36:42.187609
dcterms:modified
2017-06-13T05:36:42.187609
rdfs:label
VirtSPARQLPrefOrder
foaf:maker
n11:this n15:this
dc:title
VirtSPARQLPrefOrder
opl:isDescribedUsing
n18:rdf
sioc:has_creator
n14:this n8:this
sioc:content
%META:TOPICPARENT{name="VirtTipsAndTricksGuide"}% ---+How can I execute query with labels preference order? The way to prefer one label to the other can be done as follows: 1. Have a procedure which returns preference order: <verbatim> create procedure lbl_order (in p any) { declare r int; r := vector ( 'http://www.w3.org/2000/01/rdf-schema#label', 'http://xmlns.com/foaf/0.1/name', 'http://purl.org/dc/elements/1.1/title', 'http://purl.org/dc/terms/title', 'http://xmlns.com/foaf/0.1/nick', 'http://usefulinc.com/ns/doap#name', 'http://rdf.data-vocabulary.org/name', 'http://www.w3.org/2002/12/cal/ical#summary', 'http://aims.fao.org/aos/geopolitical.owl#nameListEN', 'http://s.opencalais.com/1/pred/name', 'http://www.crunchbase.com/source_description', 'http://dbpedia.org/property/name', 'http://www.geonames.org/ontology#name', 'http://purl.org/ontology/bibo/shortTitle', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value', 'http://xmlns.com/foaf/0.1/accountName', 'http://www.w3.org/2004/02/skos/core#prefLabel', 'http://rdf.freebase.com/ns/type.object.name', 'http://s.opencalais.com/1/pred/name', 'http://www.w3.org/2008/05/skos#prefLabel', 'http://www.w3.org/2002/12/cal/icaltzd#summary', 'http://rdf.data-vocabulary.org/name', 'http://rdf.freebase.com/ns/common.topic.alias', 'http://opengraphprotocol.org/schema/title', 'http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema.rdf#Name', 'http://poolparty.punkt.at/demozone/ont#title' ); if (isiri_id (p)) p := id_to_iri (p); r := position (p, r); if (r = 0) return 100; return r; } ; </verbatim> 1 Execute the following query: <verbatim> SPARQL DEFINE input:inference "facets" SELECT ?o WHERE { <http://uriburner.com/about/id/entity/http/www.linkedin.com/in/kidehen#CV_mfrTl4s6Jy> virtrdf:label ?o ; ?p ?o . } ORDER BY (sql:lbl_order (?p)); </verbatim> 1 Or execute the following query using sql: <verbatim> SELECT __ro2sq (O), lbl_order (P) FROM RDF_QUAD table option (with ''facets'') WHERE G = __i2id (?) AND S = __i2id (?) AND P = __i2id (''http://www.openlinksw.com/schemas/virtrdf#label'', 0) ORDER BY 2 </verbatim> ---+++Related * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]
sioc:id
393e24e25f57bfc301a6f345b13bf4d6
sioc:link
n2:VirtSPARQLPrefOrder
sioc:has_container
n16:VOS
n13:has_services
n12:item
atom:title
VirtSPARQLPrefOrder
sioc:links_to
n6:VirtTipsAndTricksGuide
atom:source
n16:VOS
atom:author
n11:this
atom:published
2017-06-13T05:36:42Z
atom:updated
2017-06-13T05:36:42Z
sioc:topic
n16:VOS