English 中文(简体)
determine the type of name using mediawiki?
原标题:

If the article is about Lebron_James, then i would know it s about an athelete.

问题回答

Categories are useful but infoboxes are better. The problem then becomes how can you utilize the information in the infoboxes?

Have a look at the magic that is DBpedia. You ll have to read a fair chunk before you can play with it and then SPARQL has a hefty learning curve too:

SELECT ?property ?hasValue ?isValueOf
WHERE {
  { <http://dbpedia.org/resource/LeBron_James> ?property ?hasValue }
  UNION
  { ?isValueOf ?property <http://dbpedia.org/resource/LeBron_James> }
}

Stackoverflow doesn t like this URL but it has tons of useful info for you to process:

http://dbpedia.org/snorql/?query=SELECT+%3Fproperty+%3FhasValue+%3FisValueOf%0D%0AWHERE+{%0D%0A++{+%3Chttp://dbpedia.org/resource/LeBron_James%3E+%3Fproperty+%3FhasValue+}%0D%0A++UNION%0D%0A++{+%3FisValueOf+%3Fproperty+%3Chttp://dbpedia.org/resource/LeBron_James%3E+}%0D%0A}





相关问题
Wiki Database, is there one?

I was searching the net for something like a wiki database, just like wikipedia but instead stores structured content, editable by users. What I was looking for was an online database accessible by ...

Using a single wiki table for multiple subject tables

I wonder to know if someone can help to understand if I m doing well using a single table with wiki content for multiple subjects, so: TABLE wiki ==> wiki_id wiki_content ...

Which issue tracker do you recommend? [closed]

I am looking for an open source issue tracker with Multiple projects Wiki Web API to integrate with CRM and other clients Optionally Extendible via custom plugins or modules Preferably written in PHP ...

C# text.Replace preserve case

I am working on a wiki bot for my communities wiki that uses the DotNetWikiBot Framework; it is to find a word that is commonly a typo (such as "abilty") and replaces them with the correction (such as ...

Delete a Sharepoint Wiki page that has no menu

Hi I created a Wiki in Sharepoint 2007, and then deleted the Home page. Now when I go to the AllPages.aspx (ie the root of the wiki) I ve got no menu options. I cannot delete the Wiki page, or add ...

How do you normally make a program look beautiful? [closed]

How can I make an Application look nice and not like an amateur pulled it together? I mean graphic-wise. Is there some sort of book you can read regarding beautiful program layouts, etc? I put this ...

热门标签