开发者

SPARQL Queries on Sub atomic particle ontology

I am attempting to write SPARQL queries on the ontology periodic.owl available from http://robertdavidstevens.wordpress.com/category/ontologies/

Please provide some sample queries on it that can I use to further build more.

For example a query to retrieve the propert开发者_开发技巧ies of a particular element

Queries that i build:

select distinct ?b where { ?s a ?b. }

Now if i want all the details about Antimony5Ion,then i did this:

SELECT *
FROM <http://www.co-ode.org/roberts/pto.owl>
WHERE
{
  ?a owl:onProperty ?b.
}


SELECT ?name ?id
FROM <http://www.co-ode.org/roberts/pto.owl>
WHERE 
{ 
  ?id owl:name ?name
}


SELECT ?name
FROM <http://www.co-ode.org/roberts/pto.owl>
ORDER BY ?name
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜