Skip to content

Latest commit

 

History

History
77 lines (67 loc) · 7.78 KB

3.md

File metadata and controls

77 lines (67 loc) · 7.78 KB

Retrieve basic information about a specific product for display purposes

Description

The consumer wants to view basic information about a known product.

Sample

"Get details about product boozed".

Expected Outcome

Given the sample dataset bsbm-1000products:

label boozed
comment golcondas keyboards hairdresser heelers congruities detractions preyed scorcher vaseline fronts
producer ethicists crusted upswollen
productFeature trailblazer countianglaceed, yodeller, cyclonically scut, slurried, nonnegotiable sanest, stroboscopes, abortionist seppukus harangues, pleasantries steamering nouveaux, rebecs occupier hampered, cognized, amu egos espanoles, rationalization, untaxed sexiness penetrates, maxillae bootstraps vies, sequestering dentals, quintupling, exorcised, biographies, rotifers, detoxifier schmoos coddles, nourishesandwinesop
productPropertyTextual1 outwalking disputability beefeater escalades reinvent tinseled obstructers pastoralism gradations urgently mistakers visions
productPropertyTextual2 devitalizing piteously augmenters wholeness extravehicular quittances inadequately deification coleslaws unreeler
productPropertyTextual3 finagling rcpt dreamland paltriest autoregulation enrage decistere lazar cremations unsympathetically
productPropertyNumeric1 527
productPropertyNumeric2 745
productPropertyTextual4 refunds celling plumaged battering concordance extracts dunking subscripting presley moderator ursiform feminizing
productPropertyTextual5 garnered appealable wefts roped spitefulness interlope recolonizing hallooed radiating
productPropertyNumeric4 1131

SPARQL Query to Perform

SELECT ?label ?comment ?producer ?productFeature
	?propertyTextual1 ?propertyTextual2 ?propertyTextual3
	?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4
	?propertyTextual5 ?propertyNumeric4
WHERE {
	%ProductXYZ% rdfs:label ?label .
	%ProductXYZ% rdfs:comment ?comment .
	%ProductXYZ% bsbm:producer ?p . ?p rdfs:label ?producer .
	%ProductXYZ% dc:publisher ?p .
	%ProductXYZ% bsbm:productFeature ?f . ?f rdfs:label ?productFeature .
	%ProductXYZ% bsbm:productPropertyTextual1 ?propertyTextual1 .
	%ProductXYZ% bsbm:productPropertyTextual2 ?propertyTextual2 .
	%ProductXYZ% bsbm:productPropertyTextual3 ?propertyTextual3 .
	%ProductXYZ% bsbm:productPropertyNumeric1 ?propertyNumeric1 .
	%ProductXYZ% bsbm:productPropertyNumeric2 ?propertyNumeric2 .
	OPTIONAL { %ProductXYZ% bsbm:productPropertyTextual4 ?propertyTextual4 }
	OPTIONAL { %ProductXYZ% bsbm:productPropertyTextual5 ?propertyTextual5 }
	OPTIONAL { %ProductXYZ% bsbm:productPropertyNumeric4 ?propertyNumeric4 }
}

SPARQL Query for the Sample Query

PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pr13: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer13/>
SELECT ?label ?comment ?producer ?productFeature
	?propertyTextual1 ?propertyTextual2 ?propertyTextual3
	?propertyNumeric1 ?propertyNumeric2 ?propertyTextual4
	?propertyTextual5 ?propertyNumeric4
WHERE {
	pr13:Product594 rdfs:label ?label .
	pr13:Product594 rdfs:comment ?comment .
	pr13:Product594 bsbm:producer ?p . ?p rdfs:label ?producer .
	pr13:Product594 dc:publisher ?p .
	pr13:Product594 bsbm:productFeature ?f . ?f rdfs:label ?productFeature .
	pr13:Product594 bsbm:productPropertyTextual1 ?propertyTextual1 .
	pr13:Product594 bsbm:productPropertyTextual2 ?propertyTextual2 .
	pr13:Product594 bsbm:productPropertyTextual3 ?propertyTextual3 .
	pr13:Product594 bsbm:productPropertyNumeric1 ?propertyNumeric1 .
	pr13:Product594 bsbm:productPropertyNumeric2 ?propertyNumeric2 .
	OPTIONAL { pr13:Product594 bsbm:productPropertyTextual4 ?propertyTextual4 }
	OPTIONAL { pr13:Product594 bsbm:productPropertyTextual5 ?propertyTextual5 }
	OPTIONAL { pr13:Product594 bsbm:productPropertyNumeric4 ?propertyNumeric4 }
}