- From: Toby Inkster <tai@g5n.co.uk>
- Date: Wed, 04 Nov 2009 13:25:03 +0000
- To: nathan@webr3.org
- Cc: public-lod@w3.org
On Tue, 2009-11-03 at 18:16 +0000, Nathan wrote:
> Hoping for a little bit of guidance here on tagging & assigning
> subjects to content etc - I can't quite grasp how to describe what an
> item of content is about
# TIMTOWTDI
# Here's a few abbreviations for starters...
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix tags: <http://www.holygoat.co.uk/owl/redwood/0.1/tags/> .
# Tags I model as being instances of both skos:Concept and tags:Tag.
# The latter is a subclass of the former anyway, but my store doesn't
# do inferencing.
</tag/linux/#concept>
a skos:Concept, tags:Tag ;
skos:prefLabel "linux"@en ;
tags:name "linux"@en ;
rdfs:label "linux"@en .
# I associate a page with each tag, for linked data goodness.
</tag/linux/#concept>
foaf:isPrimaryTopicOf </tag/linux/> .
</tag/linux/>
foaf:primaryTopic </tag/linux/#concept> .
# I link from tags to the real-world things they describe.
</tag/linux/#concept>
moat:localMeaning <http://dbpedia.org/resource/Linux> .
# Finally, I link from pages to tags.
</article/linux-rocks/>
dc:subject </tag/linux/#concept> ;
tags:taggedWithTag </tag/linux/#concept> .
</article/linux-sucks/>
dc:subject </tag/linux/#concept> ;
tags:taggedWithTag </tag/linux/#concept> .
# When outputting article tags in RDFa, I use:
#
# <a rel="dc:subject tags:taggedWithTag tag"
# href="/tag/linux/#concept">linux</a>
#
# ... which is rel=tag-compatible.
# TIMTOWTDI
--
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Wednesday, 4 November 2009 13:25:42 UTC