Notice: Scheduled maintenance is set for Tuesday, Sept 2nd at 1am EST. During this time, we will experience up to 20 minutes of downtime. Thank you for your patience.


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

fadirra
1.2k310
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.

link

answered 15 Jul '11, 16:11

fellahst's gravatar image

fellahst
3.3k29
accept rate: 11%

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".
link

answered 15 Jul '11, 22:58

fadirra's gravatar image

fadirra
1.2k310
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

By RSS:

Answers

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

Tags:

×88
×76
×12
×6
×4

Asked: 15 Jul '11, 14:23

Seen: 1,475 times

Last updated: 15 Jul '11, 22:59