I am struggling with getting literal device names from my RDF base with smartphone data. Example data:
<rdf:Description rdf:about="https://lukasgorny.pro/devices#GioneeX1">
<feature:device-name>Gionee X1</feature:device-name>
<feature:screen-size>big</feature:screen-size>
<feature:internal-memory-size>small</feature:internal-memory-size>
</rdf:Description>
<rdf:Description rdf:about="https://lukasgorny.pro/devices#SharpAquosS3">
<feature:device-name>Sharp Aquos S3</feature:device-name>
<feature:screen-size>big</feature:screen-size>
<feature:internal-memory-size>big</feature:internal-memory-size>
</rdf:Description>
Query:
PREFIX feature: <https://lukasgorny.pro/devices#>
SELECT ?device WHERE
{
?device feature:device-name ?deviceName .
OPTIONAL { ?x feature:screen-size ?screenSize . }
OPTIONAL { ?y feature:internal-memory-size ?memorySize . }
}
I want to extract all device names which screen-size is "big" and internal-memory-size is "small" (those are parametrized in my application, but I'm giving you an example here). Can you kindly point me in the right direction? I can't seem to find a solution.