Reputation: 527
I'm new in the field of ontology. I'm using the Dublin Core as an additional ontology to the ontology that I'm creating which is a curriculum ontology. But, I'm having trouble on how I can retrieve certain information.
For example, I have a class named, Bibliographic Resource
, this is a class in the Dublin Core ontology. In this class, I have a member named Introduction_to_Computer_Science_1
and in this member, I have a data property named, Alternative Title
with a string value named ICS Book
. I want to retrieve the Alternative title of the member which is the ICS Book
. I'm using SPARQL as my query language and Protégé as my ontology tool. This is my query
SELECT ?title
WHERE{
<http://semanticweb.org/LearningPlanOntology#Introduction_to_Computer_Science_1> dc:'Alternative Title' ?title.
}
Can anyone tell me what's wrong with my query?
Upvotes: 0
Views: 510
Reputation: 3301
This is what I did and worked. I think you might have a syntax issue:
prefix : <http://www.bbc.co.uk/ontologies/curriculum#>
prefix dcterms: <http://purl.org/dc/terms/>
SELECT distinct *
WHERE{
:Introduction_to_Computer_Science_1 dcterms:alternative ?title
}
Upvotes: 1