Protege and java - protege

How to open, read and manipulate the contents of .owl file in java?

Another API for manipulating RDF and OWL etc is Jena.

Related

reading XLSB from apache poi

I've read it stated on multiple SO questions that Apache POI 3.16-beta3 has read-only support for xlsb files.
I am using poi 3.17 and cannot find any documentation or examples of this feature. The best I can find is an example of extracting raw text only via XSSFBEventBasedExcelExtractor, but this appears to be quite old (2010?) and I am unsure if this is the referenced capability.
Is there any documentation or examples of using poi to read xlsb files with the read-only parsing alluded to in the comments of this question: Exception reading XLSB File Apache POI java.io.CharConversionException and in an answer to this: Reading data from .xlsb in Clojure by Tim Allison ?
The functionality that Tim was referring to is actually XSSFBEventBasedExcelExtractor, and it was added in Apache POI 3.16. It can be used to extract text-content from the file.
There is currently no functionality to fully read the file content, though.
See also the JavaDoc for this class.

Integrating YAGO classes to DBPedia2014

I am not too new to semantic web and have a complete set of DBPedia2014 English loaded into my RDF store running. Now I would like to add the YAGO class datasets (links, types) into the DBPedia2014 RDF space and could not find a single TTL download (just TSV). The only somehow updated and running YAGO downloads are on http://www.mpi-inf.mpg.de/departments/databases-and-information-systems/research/yago-naga/yago/downloads/ only tsv files.
One line of such a file is for instance:
<id_svyx35_88c_avbfa5> <Kuldeep_Raval> rdf:type <wikicat_Delhi_Daredevils_cricketers>
Note that <id_svyx35_88c_avbfa5>
is not a (resource) url, reading in this line causes errors. Furthermore how can the RDF space figure out to what entity this is referring to in DBPedia (I do have an idea, but this seems to me not really compliant to an RDF Space).
How can these YAGO files be integrated into DBPedia in an RDF store accepting formats like xmlrdf,ttl,n3,nt,nq ?
Thanks
Use the yago links from dbpedia
http://data.dws.informatik.uni-mannheim.de/dbpedia/2014/links/

XML for tv listing

i have the webage tvguide tvguideand i am having problem on how to start coding the xml for it just sample data
i can omit the advertising elements
XML Language should consist of:
a. XML Sample Data
b. DTD to define the sample data
c. Either an XML XSLT or and XSL-FO
d. CSS if you select XSLT
Your question is not very clear:
For generating xml from xsd you can use online tools like: http://xmlgrid.net/genXml.html
You can also use Eclipse, or any other IDE.
Why do you need DTD? XSD is like DTD only better.
XSLT helps transforming one XML to another, why do you need it?
How is CSS related?

How to get the content of an excel file in struts2 after uploading?

I'm working on Struts2 framework. I need to upload an excel file to the buffer so that I can extract its informations and print them into a table in a jsp page. I followed this tutorial : http://www.roseindia.net/struts/struts2/struts-2-file-upload.shtml , and so I could upload any type of file. My question is then : how can restrict the type into .xls and .xlsx ? and how can I get the content of the rows existing in the excel file? I read somewhere that i can use the Apache POI API ... but I couldn't get much how to do. Thank you.
Have you seen the Struts 2 File Upload Tutorial ?
It shows how to restrict to certain mime types.
You need the mime types described here for excel.
There is an opensource library called jxl. After you haveuploaded your file to your server you can read it in and iterate through ght rows. Its very easy to do.

Schema/DTD of PowerPoint

I am looking for a way to add some meta-infromation to PowerPoint files. Specifically, I want to add annotation to bullets and slides.
Are there any XML attributes which can be added to the elements (of the slideX.xml file) without invalidating it? In other words, where can I find the schema/DTD of the slideX.xml files?
"Best Practice" is to download the Open XML SDK 2.0 and use the tool DocumentReflector
Create the document you would like to have and then load that pptx into the DocumentReflector and check how to generate that code....
http://blogs.msdn.com/ericwhite/archive/2008/09/06/announcing-the-first-ctp-of-open-xml-sdk-v2.aspx
Annotations to slide is that Notes on the slide?!?! Then you need to create a NotesSlide
http://msdn.microsoft.com/en-us/library/documentformat.openxml.presentation.notesslide(office.14).aspx
Yeah, you can use ExtLst and Ext which is basically adding your own extension to PresentationML, to "tag" just about anything at all in SlideX.xml. You can read more about it here.

Resources