Hi there,

Just a quick question, how do I represent a hashtag in a tweet in RDF? Basically, there are many options to represent it, such as using dc:subject (or dcterms:subject), moat:taggedWith, etc. However, I'm not sure yet whether I should choose between those options. For instance, there's a tweet like this:

This mac is awesome. #apple

What could be the best way to represent it in RDF? I know that I could represent a tweet as a sioct:MicroblogPost but how about its hastags? I will update my project wiki as soon as I get a good answer. Thanks!

asked 15 Jul '11, 14:23

fadirra's gravatar image

accept rate: 21%

edited 15 Jul '11, 14:28

I suggest you use a combinaison of SIOC:MicroblogPost and Tag Ontology. There are a couple of one out there. In your example, I suggest you remove the # to assign the tag label. You could also subclass Tag with a new class HashTag that will indicate it is a tag used in Twitter. Have a look at SCOT ontology (for some reason the site is down). The following presentation provides a list of links to tag ontologies.

permanent link

answered 15 Jul '11, 16:11

fellahst's gravatar image

accept rate: 12%

As for tagging, I found that there are 2 ontologies available, SCOT and MOAT. What's the difference between them? Thank you!

(15 Jul '11, 20:03) fadirra fadirra's gravatar image

I have found a solution, well, sort of..

@prefix sioc:   <http://rdfs.org/sioc/ns#>.
@prefix sioct:  <http://rdfs.org/sioc/types#>.
@prefix gc:     <http://www.oegov.org/core/owl/gc#>.

<http://twitter.com/capucinnolover/status/92059560046637056> a sioct:MicroblogPost;
    sioc:has_creator <http://semantictweet.com/capucinnolover#me>;
    sioc:content     "This mac is awesome. #apple";
    gc:hashtag       "apple".
permanent link

answered 15 Jul '11, 22:58

fadirra's gravatar image

accept rate: 21%

edited 15 Jul '11, 22:59

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Jul '11, 14:23

question was seen: 2,097 times

last updated: 15 Jul '11, 22:59