1. Doug Burke
  2. astrosearch

Commits

Doug Burke  committed 68edfd9

Fix for change in modelling of nfollowers; ignore https

  • Participants
  • Parent commits d121c2c
  • Branches default

Comments (0)

Files changed (2)

File SPARQL.hs

View file
  • Ignore whitespace
 queryUserInfo ngs =
   unwords
   [ "prefix sioc: <http://rdfs.org/sioc/ns#>"
-  , "prefix sioct: <http://rdfs.org/sioc/types#>"
   , "prefix foaf: <http://xmlns.com/foaf/0.1/>"
   , "SELECT ?userid ?handle ?name"
   , fromStores ngs
 queryNumFollowerInfo ngs = 
   unwords
   [ "prefix sioc: <http://rdfs.org/sioc/ns#>"
+  , "prefix sioct: <http://rdfs.org/sioc/types#>"
   , "prefix tw: <http://purl.org/net/djburke/demo/twitter#>"
   , "SELECT ?userid (MAX(?follows) AS ?nfollows) (MAX(?followers) AS ?nfollowers) "
   , fromStores ngs
   , " WHERE {"
-  , "  [] a sioc:UserAccount ; sioc:id ?userid ; "
+  , "  [] a sioct:MicroblogPost ; "
+  , "     sioc:has_creator [ sioc:id ?userid ] ; "
   , "     tw:numFriends ?follows ; tw:numFollowers ?followers ."
   , "} GROUP BY ?userid"
   ]

File Tokenize.hs

View file
  • Ignore whitespace
     [ "#aas223", "#hackaas", "#aasviz"
     , "rt", "mt", "via", "aas", "#a", "...", ".\"", "--"
     , "://"
-    , "http", "re"] ++
+    , "http", "https", "re"] ++
     stopWords ++
     ["de"]