i have a simple notation3 ontology
@prefix my: <http://www.codeproject.com/KB/recipes/n3_notation#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
my:spec a rdfs:Class.
my:security a rdfs:Class; rdfs:subClassOf my:spec .
my:bluetooth a my:security;
my:preferedby my:BusinessPerson;
my:name "bluetooth".
im trying to define class spec
and define security
class as a subclass of spec
.
this is my sparql query im using with the help of dotNetRdf library
PREFIX my: <http://www.codeproject.com/KB/recipes/n3_notation#>
SELECT ?name
WHERE {
[ a my:spec;
my:preferedby my:BusinessPerson;
my:name ?name].
}";
according to class hierarchy this query should return 'bluetooth' as an answer since security
is a subclass of spec
(according to my knowledge) . but so far no result. can some one help me with this where i have done my mistake ? thanks in advanced