13.07.2015 Views

WWW/Internet - Portal do Software Público Brasileiro

WWW/Internet - Portal do Software Público Brasileiro

WWW/Internet - Portal do Software Público Brasileiro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ISBN: 978-972-8939-25-0 © 2010 IADIS}}/* loop on siblings of each concept */for (int i = 0; i < concepts.size(); i++){}siblings = concepts(i).getSiblings();for (int j = 0; j < siblings.size(); j++){}if (concepts.contains(siblings(i)){}aLCurrSibTags = siblings(i).getTags();<strong>do</strong> Process A on aLcurrSibTags;if (position < 2){}for (int i = 0; i < concepts.size(); i++){}getScoresUp(aLsuperClassessCurrConc,position++, currentScore * 0.5);Figure 1. Pseu<strong>do</strong>-code showing recursion in getScoresUp methodThe concept of recursion is particularly useful in that traversing different levels of an ontologyintrinsically employs the same concept. The base case of the recursion would occur when the desired numberof levels in the ontology has been traversed. This is referred to in Figure 1 as position.The project targets this issue in that scores of past recommendation are stored in database, to be used forfuture recommendations.5. IMPLEMENTATIONThe project is implemented in an object oriented manner using the language Java. It is important to point outthat in reality the project may be implemented in any OO language. The web interface of the project utilisesJSP.SPARQL is used to query both the RDF and the ontology. SPARQL (Prud'homeaux, et al., 2008) is aquery language for RDF. A SARQL query is composed of triple patterns which correspond to subject,predicate and object and are usually represented as variables. The basic parts used to construct a SPARQLquery are the SELECT and WHERE clauses. The SELECT clause identifies the variables that should appearin the result while the WHERE clause is the criteria in the form of a graph pattern which should match thegiven data graph. Moreover, SPARQL syntax can be extended for further functionalities. The following is asample SPAQL query which gets all names of the persons in a social network.6. RESULTSThe <strong>do</strong>cumentation argues about the result obtained from variations of approaches enlisted in the designsection that the project puts forward. For instance, tags used by a target users may or may not be used toidentify resources which to recommend in approach one. This makes sense if the target user has confidencein his own tagging. In addition, more detailed concepts (children of concepts of the target user) may be givena lesser score than concepts above. This makes sense if the target user is interested more in getting to gripswith general ideas rather than specific ideas.Ultimately, different flavours of the approaches put forward have their benefits and disadvantages inrelation to what the target user is looking for. Other minor variations in results entail considerations related to380

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!