Merge lp:~sinzui/launchpad/rdf-links-1 into lp:launchpad
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Aaron Bentley on 2010-10-18 | ||||||||
| Approved revision: | no longer in the source branch. | ||||||||
| Merged at revision: | 11747 | ||||||||
| Proposed branch: | lp:~sinzui/launchpad/rdf-links-1 | ||||||||
| Merge into: | lp:launchpad | ||||||||
| Diff against target: |
225 lines (+58/-52) 7 files modified
lib/lp/registry/stories/person/xx-person-rdf.txt (+13/-13) lib/lp/registry/stories/product/xx-product-rdf.txt (+16/-15) lib/lp/registry/stories/project/xx-project-rdf.txt (+15/-14) lib/lp/registry/templates/person-rdf-contents.pt (+2/-4) lib/lp/registry/templates/product-rdf.pt (+4/-2) lib/lp/registry/templates/productrelease-rdf.pt (+4/-2) lib/lp/registry/templates/project-rdf.pt (+4/-2) |
||||||||
| To merge this branch: | bzr merge lp:~sinzui/launchpad/rdf-links-1 | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Aaron Bentley (community) | 2010-10-15 | Approve on 2010-10-18 | |
|
Review via email:
|
|||
Description of the Change
This is my branch to use foaf to specify membership and ownership.
lp:~sinzui/launchpad/rdf-links-1
Diff size: 164
Launchpad bug: https:/
Test command: ./bin/test -vv -t rdf
Pre-
Target release: 10.11
Use foaf to specify membership and ownership
-------
A recent change to Launchpad (james_w at #launchpad mentioned
https:/
broke the RDF syntax for the team members list.
Looks like the lp's OWL never expected to use its own specifiedAt as a member.
However, I do not think the lp:specifiedAt is needed. We can express this in
FOAF and FOAF is good. lp:owner will also need updating.
Rules
-----
* Teams will use:
<foaf:Group>
</foaf:Group>
* Projects, products, and releases will use:
<lp:owner>
</lp:owner>
QA
--
From a python console with python-rdflib installed run this:
from rdflib.Graph import Graph
g = Graph()
g.parse('https:/
g.parse('https:/
g.parse('https:/
g.parse('https:/
Lint
----
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
^ There are indentation problems in the tests. I will fix these after the
review so that the diff does not hide my changes.
Test
----
Revised test to verify foaf markup.
* lib/lp/
* lib/lp/
* lib/lp/
Implementation
--------------
Updated member markup
* lib/lp/
Updated owner markup:
* lib/lp/
* lib/lp/
* lib/lp/
| Curtis Hovey (sinzui) wrote : | # |
On Mon, 2010-10-18 at 18:41 +0000, Aaron Bentley wrote:
> Review: Needs Fixing
> Some examples say "foaf:Accoun" rather than "foaf:Account"
I must have been running tests in the wrong branch. I fixed the two
failing tests that expects Account to be mispelled.
This RDF branch has another idiotic problem bu defining a user as a
group. The xx-person-rdf.txt tests rightly fails because the template is
saying the member is a group with only one member, the user. The markup
should be a single element stating the url of the member.

Some examples say "foaf:Accoun" rather than "foaf:Account"