I have a place name (e.g. city) which has a corresponding triple in Geonames dataset. I want to get the continent for that place using SPARQL query. There are two properties useful for this:

1. geo:parentFeature /(Feature==Place)/
2. geo:featureCode

Every place type (city, country, continent) is defined with a Feature Code. The problem is how to apply a recursive condition in SPARQL to get parent feature node, until (parent)featureCode == geo:Continent?

asked 01 Dec '12, 11:00

metaweb87's gravatar image

accept rate: 5%

edited 01 Dec '12, 11:05

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Dec '12, 11:00

question was seen: 1,518 times

last updated: 01 Dec '12, 12:13