Showing posts with label INFO. Show all posts
Showing posts with label INFO. Show all posts

Power of content sharing

The more you share the more data can be mined; the more adverts can be targeted; the more money can be made. That's why Facebook's nudging you towards sharing more, and it's why Google is now personalising search for everybody whether they want it or not.

Source:
Read more

OWL API hasKey problem

OWL doesn't allow datatype properties to be inverse functional one. One can assume an inverse functional property as a unique key in database. OWL2 comes with the concept of hasKeys.

Few days ago I tried to parse the owl file having hasKey using Jena. Unfortunately, I found that Jena doesn't have the parser for OWL2 yet. Next, I found that The OWL API supports OWL2. Today, I spent my whole day to use the hasKey feature of OWL2 specification. I tried to parse the owl file using this parser. It parses the owl. But when I print the hasKey axioms after parsing, I get only output in forms of genid* i.e. no property names that are used in hasKey are obtained.  To me it seems like a bug of the parser ... couldn't manage to get the keys :(. If anyone of you let me know how we get the properties specified in hasKey, I will give you a BIG thank you.

The portion of the owl is given below:
<owl:class rdf:about="#Conference">
<rdfs:subclassof rdf:resource="&amp;owl;Thing">
<owl:haskey rdf:parsetype="Collection">
<owl:datatypeproperty rdf:resource="#confName">
<owl:datatypeproperty rdf:resource="#confYear">
<owl:datatypeproperty rdf:resource="#confType">
</owl:datatypeproperty></owl:datatypeproperty>
</owl:datatypeproperty></owl:haskey>
</rdfs:subclassof></owl:class>

Code to print the hasKey :
private void printHasKeyAxioms(OWLOntology ontology, OWLClass cls) {
Set keySet=ontology.getHasKeyAxioms(cls);
System.out.println("\t Total hasKey: "+keySet.size());
if(keySet.size()>0)
{
Iterator
keyIter=keySet.iterator();
while(keyIter.hasNext()){
OWLHasKeyAxiom key=keyIter.next();
Set
exp=key.getPropertyExpressions();
for(OWLPropertyExpression p:exp){
System.out.println("\t - "+p+" ");
}
}
}


Output (for cls=Conference): (Some info. is correct: Conference class has a key which has has three properties ) 
Total hasKey: 1
- <http://leo.inria.fr/publication.owl#genid7>
- <http://leo.inria.fr/publication.owl#genid9>
- <http://leo.inria.fr/publication.owl#genid11>


However, I expect names of properties instead of genid* in the output ...

Country Ranking by Internet Speed

Technical Blog kicks off

Now I've lunched my Techincal blog. I have two more blogs: Phulbari (Nepali), Angrejee (English & French). My original intention was to write all English stuffs in Angrejee . However, I found its difficult... Thus, I lunched this new one purely for Technical stuffs. I'll use that for  non-tech stuffs.

Google search tips

Searching is almost compulsory to get the job done. One can use Google, Yahoo!, Bing and other search engines to search stuffs in web. Personally, I use Google more often than any other. 

The faster one can search things, the more productive he becomes. To find things quickly, we need to know search tips. Here I'm providing some URLs which talk about the tips in searching web using Google. 

Actually, I'm  not using many of these tips till today... However, I now try to use these tips. Hope I'll be more productive :) !

Tips for using Google Search:
  1. Google Operators
  2. 6 Ways to reduce Irrelevant results in Google 

Invention & Innovation

Invention is the conversion of cash into ideas. Innovation is the conversion of ideas into cash. This is best described by comparing Thomas Edison with Nikola Tesla. Thomas Edison was as innovator because he made money from his ideas. Nikola Tesla was an inventor. Tesla spent money to create his inventions but was unable to monetize them.

Reference:
1. Wikipedia

Info: How dangerious an atomic bomb would be?

Source: Wikipedia

Two major types of atomic bomb were developed by the United States during World War II: a uranium-based device (codenamed "Little Boy") whose fissile material was highly enriched uranium, and a plutonium-based device ("Fat Man") whose plutonium was derived from uranium-238.

The uranium-based Little Boy device became the first nuclear weapon used in war when it was detonated over the Japanese city of Hiroshima on 6 August 1945. Exploding with a yield equivalent to 12,500 tonnes of TNT, the blast and thermal wave of the bomb destroyed nearly 50,000 buildings and killed approximately 75,000 people.

Initially it was believed that uranium was relatively rare, and that nuclear proliferation could be avoided by simply buying up all known uranium stocks, but within a decade large deposits of it were discovered in many places around the world.

Freedom: Fall of Berlin Wall

Guns can do nothing; barriers can do nothing - they just intimidate people for days or may be for few years; they may claim few lives. No weapons are needed to counter-attack junta and dictators. Just need to make people aware of their RIGHTS and FREEDOMS. Look at the "Fall of Berlin Wall" in 9th Nov 1989. Anybody who has visited Berlin must have a bag of words at this moment: November 9, 1989; Berlin Wall; East and West Germany; Brandenburg Gate; Checkpoint Charlie; People's Freedom.

Diarrhoea kills more kids than AIDS

I'm amazed knowing an astonishing news, at least to me, that I read in web. It says that although there are efficient and inexpensive ways of treatment to diarrhoea, it kills more children than AIDS, malaria and measles combined.
Only 39 percent of the children get recommended treatment of diarrhoea in developing countries. This is what makes the number so high. It is a very sad news...