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

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.

Related

how to call OWL API from vb.net.I would like to run SWRL rules uppn OWL ontology

I would like to run SWRL rules uppn OWL ontology and use the results in my VB.NET (web base).
I downloaded OWL API (a jar file)from http://owlapi.sourceforge.net/ but in the documentation I could not find how to call this jar file from vb.net .
can you help on this??
please
This has the same answer as Can you use Java libraries in a VB.net program?
OWLAPI is a java library; in order to use it from another programming language, what's required is the ability of that language to interface with Java.
I do not have VB.net experience, but if it's possible to interface with Java at all then it's possible to use OWLAPI the same way.

Mule SOAP to SOAP integration scenario

Is there any way, compatible with computer science rules, to make at list 2 flows in one project like this:
External system 1 -> SOAP endpoint (mule) -> java object -> transformation -> java object -> SOAP endpoint (mule) -> External system 2.
Our non working solution:
single flow
We experience bug [www.mulesoft.org/jira/browse/MULE-5926]. Yes I read [stackoverflow.com/questions/25744541/mule-issue-more-than-one-jaxbcontext].
The solution which has nothing in common with the ESB philosophy but has one major single advantage, it works: looks like looks like this
Some helpful resources:
[www.enterpriseintegrationpatterns.com/patterns/messaging/] - notice please there are separate router and translator components.
Any ideas?
Best Regards, Apologies I can post only 2 links due to my reputation rank.
The reason the last image works is more about what you cannot see. Just visually seeing the Java component on the MuleSoft canvas (screen where you "draw" the flow or integration solution) doesn't provide enough detail as to what the Java component is doing. And, while the icons on the canvas are nice, we generally inspect problems by looking at the XML.
Your question is not clear. The flow that you described in your image can't be discerned into an integration pattern I recognize and the details behind your flow design are vague.
Please provide your Mule config (XML) for the same flow, but first try to edit your question to explain exactly what you are trying to do. Stackoverflow is a place where problems are identified and problems are resolved. It's also a place for the history of what we do. It is up to us to do our homework before we add new questions. Myself or maybe someone else will help you but only after you clearly explain your problem. Yes, other solutions work but there's no way I can compare your flow to the simple one with the Java component without a LOT of background information.

what is swagger exactly ? And why doesn't the online editor run requests?

I've spent the last few days trying to understand if I should use api blueprint, RAML or swagger.
It looks like swagger has the biggest community but the closer I look the more I feel that it greatly lacks in documentation (I was forced to look at the code many times to try and integrate it with my current project), many github issues and stackoverflow questions are unanswered.
Is it possible that I am missing something here?
All I want is a tool to help me write the API documentation and test the endpoints.
Why must swagger become part of the server logic?? If I create swagger files in the editor and then serve them to the UI directly it breaks..
As far as I can tell it even makes the server slightly slower and forces the existence of many clumsily maintained integrations :p What am I missing here?
We're trying to work a lot on improving the documentation of Swagger. It's a bit more difficult when many of the projects are community-driven and not managed by a single organization.
We actually try to reply to issues on github quickly (we don't always succeed) and we have our own google group for general questions so we follow stackoverflow somewhat less.
The editor you mention is a new tool as part of the work on Swagger 2.0 and it's not final yet. As such, it still have a few bugs and missing features. The UI is also in the process of being adapted to Swagger 2.0 and the same limitations apply to it.
You most certainly don't have to integrate it with your server and you can expose the documentation statically. The advantage of integrating it with the server is that it's easier to maintain if the API changes.
You can try RAML + ramlev + Abao
The steps should be
Write API Spec in RAML with your fav editor, ie. Atom, vim
Validate your RAML with ramlev
Implement the server logic according API Spec
Validate server logic with Abao

Phalcon: How i can design a website with multi languages?

Later i worked with symfony framework. In this framework we can easily build a multi language project by using FOSUserBundle. But i do'nt know what to do in phalcon! In the Phalcon documentation (multi-lingual-support) explained a way for it! But if i have many languages this way is too difficult!
Do yo know about any provided library for multi language projects?
You can either use the Phalcon\Translate to translate all your strings in respective arrays - one file per language. The reference in the documentation as you correctly posted is here and it refers to the native array adapter.
There are additional adapters in the incubator repo, for PO files or database driven.
You might also want to see the internationalization area in the documentation.
take a look at this piece of code
https://bitbucket.org/moderndeveloperllc/phalconlocale/src

How to validate a SKOS file?

At the first ,I have to say,my English is so so .
Now I need something to check my skos file whether it is valid.Is there some API or some tools can do so?
I know there are one web service can do so,but I have to develop a system,so what I need most is a API .
validating Skos files ,I mean,it can find the errors in skos types and propeties,such as the skos:broad (the valid one is skos:broader) .
Thanks in advance!
a couple of hints are given here : http://answers.semanticweb.com/questions/417/validate-against-rdf-vocabulary. However, there are no direct, open-source api that you can integrate in your project, to my knowledge.
Also have a look here and here, if you have a triple Store with SPARQL support.
Hope that helps...