Are there mappings between WordNet 3.1 and WordNet 3.0 synsetId? - wordnet

I am trying to map a Wordnet 3.0 synset to Wordnet 3.1
For example: purl.org/vocabularies/princeton/wn30/synset-embrace-verb-2
I see that in Wordnet 3.1 there is a owl:sameAs statement for
http://wordnet-rdf.princeton.edu/wn31/201427110-v
owl:sameAs http://www.w3.org/2006/03/wn/wn20/instances/synset-embrace-verb-2
So by comparing the resource fragments would be one way, but it seems awkward. Is there a simpler way?

I have created a json file for mapping between wordnet v3.0 and v3.1:
https://github.com/ozendelait/wordnet-to-json/blob/master/README.md

A part of mappings could be found in the data set of this paper:
Learning Spatial Knowledge for Text to 3D Scene Generation, EMNLP 2014
The filename is shapenetsem.taxonomy.json

Related

How to handle .owl file with sparql queries using java?

I want to develop java application that displays knowledge or information inferred from cottonCrop ontology (.owl file) (in form of GUI i.e table or tree - human understandable ) using sparql queries.
I want to make application similar to below reference link.
[ Reference link: http://agridaksh.iasri.res.in/Project/language.jsp ]
I have done comprehensive reading for Apache Jena / OWL API / Protege API.
Still I'm confused which framework I should use and how I built the application ?
Please share your views on this. I'm expecting detailed responses.
Thanks in advance.

how to convert yii 1 application to version 2

We have website which built in yii 1.1 version, now we would like to convert it to version 2. But we already have a lots of functionality and we do not have much time to do everything by scratch in yii 2. please do suggest.
I don't think there is a fast way of converting or migrating from Yii 1.1 to Yii2. They are similar in some ways but different enough.
I would recommend you first read most of The Definitive Guide to Yii 2.0, which includes Upgrading from Version 1.1.
In my opinion the best you can do is try to replicate the same modules and their functionality one at a time, trying to reuse as much code as you can from the 1.1 version. A few things that i think would be important are:
Create the new Yii2 models using Gii and adapt methods from your Yii 1.1 models. Edit and add validation rules as needed. There are many rules that might not have been available in Yii 1.1, however it can also be true the other way around.
Generate Yii2 modules with Gii. Just need these to create a better project structure. If you didn't use modules on Yii 1.1 i would recommend doing so for Yii2.
Generate Yii2 CRUDs with Gii inside the corresponding modules. This will help generate the controller, actions, views and search model needed for basic CRUD functionality. After that, you will need to edit the views and controller to fit your needs, which you can use your 1.1 code for reference.
Install needed extensions and widgets using composer. Many extensions from Yii 1.1 have updated versions for Yii2, but for those that do not you will have to find substitutes, which shouldn't be too difficult, although you will most likely have to read the documentation for both familiar and new extensions.
In the end you will need to spend time to have a Yii2 version of your website, there is no easy and fast way to jump
You don't need to convert your application completely you can use both at same time please have a look to
http://www.yiiframework.com/doc-2.0/guide-tutorial-yii-integration.html

Does libxml2 support XPath 2.0 or not?

I've tried to use the XPath 2.0 exp //span/string(.) in libxml2, but it doesn't work.
So, my question is: does libxml2 support XPath 2.0 or not?
According to this 2007 email from the maintainer of libxml2, libxml2 does not, and will not, support XPath 2.0.
As far as I know -- not. The prevailing majority of XPath 2.0 implementations are part of XSLT 2.0 processors or XQuery processors.
you might be interested in an XPath 2.0 extension to libxml2 - however, 2 caveats apply: it's work in progress and it's free for non-commercial use only.
hope this helps,
best regards, carsten
ps:
i am neither affiliated with the guys working on libx nor have i any personal experience on using it or knowledge beyond the info from their website.
Libxml2 implements a number of existing standards related to markup languages:
the XML standard: http://www.w3.org/TR/REC-xml
Namespaces in XML: http://www.w3.org/TR/REC-xml-names/
XML Base: http://www.w3.org/TR/xmlbase/
RFC 2396 : Uniform Resource Identifiers http://www.ietf.org/rfc/rfc2396.txt
XML Path Language (XPath) 1.0: http://www.w3.org/TR/xpath
HTML4 parser: http://www.w3.org/TR/html401/
XML Pointer Language (XPointer) Version 1.0: http://www.w3.org/TR/xptr
XML Inclusions (XInclude) Version 1.0: http://www.w3.org/TR/xinclude/
ISO-8859-x encodings, as well as rfc2044 [UTF-8] and rfc2781 [UTF-16] Unicode encodings, and more if using iconv support
part of SGML Open Technical Resolution TR9401:1997
XML Catalogs Working Draft 06 August 2001: http://www.oasis-open.org/committees/entity/spec-2001-08-06.html
Canonical XML Version 1.0: http://www.w3.org/TR/xml-c14n and the Exclusive XML Canonicalization CR draft http://www.w3.org/TR/xml-exc-c14n
Relax NG, ISO/IEC 19757-2:2003, http://www.oasis-open.org/committees/relax-ng/spec-20011203.html
W3C XML Schemas Part 2: Datatypes REC 02 May 2001
W3C xml:id Working Draft 7 April 2004
Since libxml2 supports XPath 1.0, the syntax is incorrect:
//span/string(.)
Should be:
string(//span/.)
For clarification, the string method is part of XPath 1.0 as well. For future reference:
libxml2 supports XPath 1.0
Objective-C supports XPath 2.0 via the nodesForXPath method of NSXMLNode in GNUStep/NextStep
The Cocoa implementation uses XPath 2.0, which is a World Wide Web Consortium recommendation.
References
NSXML Concepts: XML Glossary
NSXML Concepts: Querying an XML Document
NSXMLNode: nodesForXPath
GNUStep: NSXMLNode Class Documentation
GalaXquery
PsychoPathXPathProcessor
CoreServicesLayer
libxml, a.k.a. gnome-xml

integrate wordnet with solr

I am trying to integrate wordnet api in to Apache solr. But it is not seems to be working and there is no good documentation as well. Could you please post me the steps if any body has experience on it?
There are more than one way to do this:
1) https://issues.apache.org/jira/browse/LUCENE-2347
2) https://gist.github.com/562776
These are simple Java classes, which extract the synonyms from WordNet's prolog file - more or less the same way. Hope this helps.
Péter

Fluent Nhibernate and MVC

I am trying to do a MVC project where i want to use fluent nhibernate. gonna use sql. unfortunately i am confused about how to even start it. i found no tutorials in the net. i need help in organizing my project.thanks in advance
I have a series on my blog where I build a forum application using asp.net mvc and fluent nhibernate. You can check out one of the earlier posts and download the source code. Here is the link to the series: http://mattias-jakobsson.net/archive.aspx#Jakobsson-forum.
Sharp architecture can be helpful. You can base your application on it. It contains MVC and nHibernate and handles many problems that you will have during application development. It is solid base for every MVC app.
You should look at Who Can Help Me?, which is an example site put together by EMC that uses many of the big OSS projects out there today. Specifically of interest: MVC + Sharp Architecture + Fluent NHibernate.
James Broome has also written plenty of stuff about using all the technologies used in the above on his EMC blog.