=== Repeated Triples ===
Looking at this page:
http://drupalrdf.openspring.net/node/106
There are a number of triples that are duplicated on that page.
Duplicating these triples is fairly harmless, but I wanted to make sure
that this was intended instead of accidental.
<http://drupalrdf.openspring.net/user/2>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://rdfs.org/sioc/ns#User> .
<http://drupalrdf.openspring.net/user/2>
<http://xmlns.com/foaf/0.1/name>
"John" .
You could keep track of the triples you generate via the code and not
generate duplicate triples. Not sure the added complexity would be worth
it for Drupal, though.
=== Multiple Types ===
Often, comments and posts are marked up with two rdf:types. For example,
this page:
http://drupalrdf.openspring.net/node/106
generates the following triples:
<http://drupalrdf.openspring.net/comment/696#comment-696>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://rdfs.org/sioc/ns#Post> .
<http://drupalrdf.openspring.net/comment/696#comment-696>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://rdfs.org/sioc/types#Comment> .
Since sioc:Comment is a owl:subClassOf sioc:Post, I don't think there is
a strong reason for you to generate the sioc:Post triple. The same
applies to dc:date and dc:created:
<http://drupalrdf.openspring.net/node/106>
<http://purl.org/dc/terms/date>
"2009-01-07T10:58:54-06:00" .
<http://drupalrdf.openspring.net/node/106>
<http://purl.org/dc/terms/created>
"2009-01-07T10:58:54-06:00" .
and to blog posts:
<http://drupalrdf.openspring.net/node/106>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://rdfs.org/sioc/ns#Post> .
<http://drupalrdf.openspring.net/node/106>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://rdfs.org/sioc/types#BlogPost> .
You may be doing this because there are reasoning agents out there that
don't understand rdfs:subPropertyOf or OWL. Again, just making sure that
this was done on purpose and not by accident.
> I feel uneasy when people ask "How can I see the RDFa?" and
> I can't give them a compelling RDFa parser library which supports 100%
> of the RDFa markup we output.
Have you tried Fuzz[1], yet? There was a new release about a month ago.
The parser passes 100% of the RDFa Test Suite and is a native RDFa
Processor and display UI for Firefox (runs on Windows, Mac OS X and
Linux). The UI is rough, but you should be able to see all of the
triples that are generated.
Drupal 7 is looking great... good luck on the upcoming set of releases!
-- manu
[1] http://rdfa.digitalbazaar.com/fuzz/trac/
--
Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: Monarch - Next Generation REST Web Services
http://blog.digitalbazaar.com/2009/12/14/monarch/
I've noticed that on the front page of http://drupalrdf.openspring.net/
there are assertions such as:
<http://drupalrdf.openspring.net/node/125#comments> sioc:num_replies
"3"@en.
This doesn't seem to be right because this resource is not mentioned
anywhere else. Instead, if we go to the /node/125 page, the
sioc:num_replies property is asserted on the sioc:Post itself, not on
the separate #comments resource.
Also, the datatype isn't specified (neither on the front page nor on the
post page), so the value ends up as a string.
--
Vasiliy Faronov
I'm probably late, but still, a few more points.
<http://drupalrdf.openspring.net/comment/830#comment-830>
sioc:reply_of
<http://drupalrdf.openspring.net/comment/829#comment-829>,
<http://drupalrdf.openspring.net/node/123>.
I don't think it's correct to say that a 2nd level comment (a comment to
a comment) is also a reply to the original post that "started it all".
It's usually just an approval, correction or refutation of some of the
points raised in the (1st level) comment. Note that sioc:reply_of isn't
transitive by itself, which probably means that it wasn't intended to be
used this way. Also, such usage would make it more difficult to e.g.
draw threads in a UI, because you'd need extra logic to figure out where
to attach the comment visually.
You don't seem to have a sioc:Container to aggregate the individual
sioct:BlogPost's. Is this intentional?
I think it might be a good idea to complement dc:title and foaf:name
with rdfs:label, but I'm not sure. General-purpose data consumers (like
Tabulator) could make some use of it.
--
Vasiliy Faronov
of all the ideas given, I couldn't +1 this enough.
imho virtually every-"Thing" should have an rdfs:label@lang - many
reasons on this thinking available if needed.
I don't think it's correct to say that a 2nd level comment (a comment to
a comment) is also a reply to the original post that "started it all".
It's usually just an approval, correction or refutation of some of the
points raised in the (1st level) comment.
You don't seem to have a sioc:Container to aggregate the individual
sioct:BlogPost's. Is this intentional?
--
Vasiliy Faronov
--
You received this message because you are subscribed to the Google Groups "SIOC-Dev" group.
To post to this group, send email to sioc...@googlegroups.com.
To unsubscribe from this group, send email to sioc-dev+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sioc-dev?hl=en.