HughP / simal

Automatically exported from code.google.com/p/simal
0 stars 0 forks source link

RDF source does not show simal:Review #272

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I go to the detailed project page of a project and I add a new Review, 
it is not present in the RDF source afterwards. The Review has been 
created, but seems not to be linked to the simal:Project.

On the project detail page the review is present and I can query it, but it 
is probably not linked to the simal:Project.
A query to find all reviews : 

 PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
 PREFIX  simal: <http://oss-watch.ac.uk/ns/0.2/simal#>
SELECT DISTINCT  ?Review WHERE
  { ?Review  rdf:type   simal:Review }

The query that populates the project detail page finds the Review 
associated with the simal:Project using this query: 

PREFIX simal: <http://oss-watch.ac.uk/ns/0.2/simal#> 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?review WHERE 
{
  ?review a simal:Review . 
  ?review simal:Project <http://simal.oss-watch.ac.uk/doap/772c0511-58d1-
49a1-b099-b3825ad1eb6f-prj6937#Project>
} 

So it's there, but it's not being linked in the RDF/XML doc.

Original issue reported on code.google.com by sander.v...@oucs.ox.ac.uk on 8 Feb 2010 at 12:01

GoogleCodeExporter commented 9 years ago
Clearly the two entities are linked, otherwise the second query would not work.

The prduction of the RDF output simply dumps the graph of the project. Since I 
don't understand RDF too well I can only guess at why it does not appear. My 
guess is that the relation comes from the Review to the project and thus it 
does not appear in the RDF graph of the project.

Original comment by ross.gardler on 7 Jul 2010 at 12:13

GoogleCodeExporter commented 9 years ago
Rereading this I now see that this query is strange:

SELECT DISTINCT ?review WHERE 
{
  ?review a simal:Review . 
  ?review simal:Project <http://simal.oss-watch.ac.uk/doap/772c0511-58d1-
49a1-b099-b3825ad1eb6f-prj6937#Project>
} 

Because simal:Project is a Class, not a Property it should not be used as a 
predicate in this query. If this is how it's linked, that's wrong.

Original comment by sander.v...@oucs.ox.ac.uk on 8 Jul 2010 at 12:52