English 中文(简体)
Question on RDF and how thisweknow.org works
原标题:
  • 时间:2009-12-13 18:10:36
  •  标签:
  • rdf
  • sparql

I was reading through this question

What s a RDF triple?

and the excellent answers to it.

Roger Federer | won | wimbledon

I understand that the above sentence is a triplet. But if the sentence is

Roger Federer won wimbledon in 2009,

how do we represent it as a RDF triplet?

This site thisweknow.org allows users to query the data.gov data starting with a town/city. Can someone give an example of how the data would look like, in their db? Its quite impressive, but I have to start with a town/city, can t do it at the state level (as far as I could see). I assume they would be allowing users to query data at county/state/national level soon, can it be done without significant changes to the data structure they have now? If yes, how?

最佳回答
Roger Federer | won | tournamentX
tournamentX | year |2009
tournamentX | site | Wimbledon

Or, maybe more clearly:

tournamentX | winner | Roger Federer
tournamentX | year |2009
tournamentX | site | Wimbledon

The main trick to data-modeling in RDF, or any other node/arc-based language, is understanding where you need intermediate objects that represent combinations of things. Here you need a "tournament" node that has a year, a site and a winner. "tournamentX" is an arbitrary ID for it.

问题回答

暂无回答




相关问题
Defining cardinality for a RDF statement

Im having a problem with RDF. I have a couple of triples defined as : <User rdf:about="#T"> <hasName rdf:datatype="http://www.w3.org/2001/XMLSchema#string">T</hasName> <...

Duplicate triple in RDF, authoritative view?

if a triple store contains twice the same triple, what is (if any exist) the authoritative position about this redundancy ? Additionally, should a triplestore be allowed to store twice the same ...

Pick and RDF/SPARQL

Anyone have any interest in intergrating RDF and/or SPARQL with a PICK database? Has anyone tried this yet? I have some thoughts about what to try. One idea is to figure out how to create a file with ...

Using contexts in rdflib

I am having trouble finding a clear, sensible example of usage of context with rdflib. ConjunctiveGraph does not accept contexts, and Graph is deprecated. How am I supposed to create and operate on ...

What is the difference between RDF and OWL? [closed]

I am trying to grasp the concept of Semantic Web. I am finding it hard to understand what exactly is the difference between RDF and OWL. Is OWL an extension of RDF or these two are totally different ...

Problem with SPARQLWrapper (Python)

I m making a SPARQL query against the Sesame store in localhost, using SPARQLWrapper: sparql = SPARQLWrapper( http://localhost:8080/openrdf-sesame/repositories/rep/statements ) sparql.setQuery(...

热门标签