invalid syntax on team members RDF

Bug #660832 reported by João Pinto
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Curtis Hovey

Bug Description

I recent change to Launchpad (james_w at #launchpad mentioned https://code.edge.launchpad.net/~sinzui/launchpad/rdf-links-0/+merge/36475) broke the RDF syntax for the team members list.

Can be validated with the following python code:

$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from rdflib.Graph import Graph
>>> g = Graph()
>>> g.parse('https://launchpad.net/~getdeb-uploaders/+rdf')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/rdflib/Graph.py", line 713, in parse
    parser.parse(source, self, **args)
  File "/usr/lib/pymodules/python2.6/rdflib/syntax/parsers/RDFXMLParser.py", line 38, in parse
    self._parser.parse(source)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in start_element_ns
    AttributesNSImpl(newattrs, qnames))
  File "/usr/lib/pymodules/python2.6/rdflib/syntax/parsers/RDFXMLHandler.py", line 169, in startElementNS
    current.start(name, qname, attrs)
  File "/usr/lib/pymodules/python2.6/rdflib/syntax/parsers/RDFXMLHandler.py", line 314, in node_element_start
    self.error("Invalid property attribute URI: %s" % att)
  File "/usr/lib/pymodules/python2.6/rdflib/syntax/parsers/RDFXMLHandler.py", line 196, in error
    raise ParserError(info + message)
rdflib.exceptions.ParserError: https://launchpad.net/~getdeb-uploaders/+rdf:16:12: Invalid property attribute URI: http://www.w3.org/1999/02/22-rdf-syntax-ns#resource

Related branches

Curtis Hovey (sinzui)
affects: launchpad → launchpad-registry
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Curtis Hovey (sinzui)
milestone: none → 10.11
Revision history for this message
Curtis Hovey (sinzui) wrote :

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.

Revision history for this message
Curtis Hovey (sinzui) wrote :

Teams will use:
<foaf:Group>
  <foaf:member rdf:resource="/~user-id/+rdf"/>
</foaf:Group>

Pillars will use:
<lp:owner>
  <foaf:Agent>
    <foaf:Account foaf:accountName="launchpad.net" rdf:resource="/~sinzui/+rdf"/>
  </foaf:Agent>
</lp:owner>

Revision history for this message
Curtis Hovey (sinzui) wrote :

accountName is wrong in the example above because it is means the user's account name, not the services' name. The attr is not needed.

Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: In Progress → Fix Committed
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Curtis Hovey (sinzui)
tags: added: qa-ok
removed: qa-needstesting
Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.