For a while I’ve wanted to create a game/story where players are given crazy and random situations. I wanted characters in the story to have relationships, feelings, own things etc,  the problem I’ve had is that if I predefine all these then the game won’t be random to me, where is the fun in that? I’d even like to the game to create new ways for characters to interact without me defining them. I’ve been looking for data source to fuel such a game and can only really think of the structured data extracted from Wikipedia from the DBpedia project.

I’ve been thinking of ways to use DBpedia to drive the story, but it’s pretty hard. I thought I’d just have a first shot at doing something by using Wikipedia categories as a way to create the attributes of a character. Also to make things easier for now I’m not using the SPARQL endpoint as my back end but routinely scraping from it in to a MySQL database first. So, I haven’t got very far yet, but I am creating random characters. They don’t interact and the types of things they can own are predefined.

This was my first auto generated character:

Name: Howard

Stats:

Social Class:Village idiot

Enjoys:Naked butler

Pet: Pot-bellied pig

Favorite toy: Zoetrope

Other Facts:
Howard stole eraser from his school.

So I haven’t got very far yet, but I like the idea that I wrote some rules about which categories in Wikipedia can be involved in my character creation and it made a character for me, even if sometimes it comes back with silly items. I’d like the data in dbpedia to decide what characteristics the how students in my story can have how how they interact with each other, but I need to come up with a good way to transverse the graph. I’m thinking I could use things such as wordnet and social media to create some extra fuzzyness.

If you want to create your own character you can do so on this page.


4 Comments

Tom Harding · February 5, 2014 at 2:48 pm

Name:”Kendra”@en

Stats: Social Class:Swamp Yankee
Enjoys:Military-entertainment complex
Pet: Domesticated silver fox
Favourite toy: Baguenaudier
Stole ISO 216 from the classroom

I’d like to hang out with this guy. Stealing paper from classrooms and watching Gardeners world from the comfort of the military entertainment complex.

Ali Kourtiche · May 23, 2014 at 12:50 pm

david help me
i want to retrive all label and concept of terms samsung but it dont work with jena in eclipse
why this is code :
————————————————————
public class linked2{

public static void main(String[] args) {
// TODO Auto-generated method stub
String service = “http://dbpedia.org/snorql”;
String queryString = “SELECT ?label ?concept ” +
“WHERE {” +
“?concept rdf:type skos:Concept.”+
“?concept rdfs:label ?label.”+
“?label bif:contains ”samsung”.”+
“} “;
Query query = QueryFactory.create(queryString);
QueryEngineHTTP qexec = QueryExecutionFactory.createServiceRequest(service, query);
ResultSet results = qexec.execSelect();
for ( ; results.hasNext() ; ) {
QuerySolution soln = results.nextSolution() ;
System.out.println(soln);
// System.out.println(soln.getLiteral(“label”));
}
}
————————————–

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

css.php