Re: What is the error in code

2015-08-15 Thread kumar rohit
I think "Maybe Module.owl is OWL syntax, not RDF", this is right.. Protege
deals with Owl and not rdf. right?

On Sat, Aug 15, 2015 at 6:04 PM, kumar rohit  wrote:

> Module,owl is a protege file placed in my desktop folder.
>
> On Sat, Aug 15, 2015 at 6:00 PM, Andy Seaborne  wrote:
>
>> On 15/08/15 17:38, kumar rohit wrote:
>>
>>> 2.13 is jena version.. I have not placed the Inputstream code in
>>> try/catch
>>> block, is it the problem?
>>>
>>
>> No idea.  There isn't enough information; all this email thread says so
>> far is "there's an exception".
>>
>> Maybe "in" is null (=> not found)
>>
>> Maybe Module.owl has a syntax error in the RDF/XML
>> Maybe Module.owl is OWL syntax, not RDF.
>>
>> If Module.owl is a file and not a Java resource, then
>>
>> RDFDataMgr.read(model, "Module.owl", Lang.RDFXML) ;
>>
>> is simpler and more direct
>>
>> Andy
>>
>>
>>
>>> On Sat, Aug 15, 2015 at 5:12 PM, Andy Seaborne  wrote:
>>>
>>> That looks like part of stacktace but missing the exception itself. What
 is
 it?

 And which version of Jena are you running?

 On 16:26, Sat, 15 Aug 2015 kumar rohit  wrote:

 The closing braces are fine. Its only missed in my email. Actually it
>
 gives

> me the following error in eclipse.
>
> "at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
> org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
> com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
> at tutorial.istmain.main(istmain.java:23)"
>
> On Sat, Aug 15, 2015 at 4:09 PM, Andy Seaborne 
> wrote:
>
> On 15/08/15 15:16, kumar rohit wrote:
>>
>> Hello, what is the problem with this code.. I can not understand even
>>>
>> the
>
>> error message by eclipse.
>>>
>>>
>> What is the error you are seeing?
>>
>> (it's missing a closing "}" for start; if this is jena3, then the
>>
> imports

> are wrong - but Eclipse will sort that out with shift-cntr-O)
>>
>>
>>
>> __
>>> import java.io.InputStream;
>>>
>>> import com.hp.hpl.jena.rdf.model.Model;
>>> import com.hp.hpl.jena.rdf.model.ModelFactory;
>>> import com.hp.hpl.jena.util.FileManager;
>>>
>>> public class istmain
>>> {
>>>
>>> public static void main(String[] args) {
>>>
>>> Model model=ModelFactory.createDefaultModel();
>>>
>>> InputStream in=FileManager.get().open("Module.owl");
>>> model.read(in,null,"RDF/XML");
>>> model.write(System.out);
>>> }
>>>
>>> _
>>>
>>>
>>>
>>
>

>>>
>>
>


Re: What is the error in code

2015-08-15 Thread Andy Seaborne

Hmm ... a reply within 4 minutes.

Which of the suggestions I've made so far have you tried?  What happens?

Two of them look quite likely to show you the problem.

Andy

On 15/08/15 18:04, kumar rohit wrote:

Module,owl is a protege file placed in my desktop folder.

On Sat, Aug 15, 2015 at 6:00 PM, Andy Seaborne  wrote:


On 15/08/15 17:38, kumar rohit wrote:


2.13 is jena version.. I have not placed the Inputstream code in try/catch
block, is it the problem?



No idea.  There isn't enough information; all this email thread says so
far is "there's an exception".

Maybe "in" is null (=> not found)

Maybe Module.owl has a syntax error in the RDF/XML
Maybe Module.owl is OWL syntax, not RDF.

If Module.owl is a file and not a Java resource, then

RDFDataMgr.read(model, "Module.owl", Lang.RDFXML) ;

is simpler and more direct

 Andy




On Sat, Aug 15, 2015 at 5:12 PM, Andy Seaborne  wrote:

That looks like part of stacktace but missing the exception itself. What

is
it?

And which version of Jena are you running?

On 16:26, Sat, 15 Aug 2015 kumar rohit  wrote:

The closing braces are fine. Its only missed in my email. Actually it



gives


me the following error in eclipse.

"at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
at tutorial.istmain.main(istmain.java:23)"

On Sat, Aug 15, 2015 at 4:09 PM, Andy Seaborne  wrote:

On 15/08/15 15:16, kumar rohit wrote:


Hello, what is the problem with this code.. I can not understand even



the



error message by eclipse.




What is the error you are seeing?

(it's missing a closing "}" for start; if this is jena3, then the


imports



are wrong - but Eclipse will sort that out with shift-cntr-O)




__

import java.io.InputStream;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileManager;

public class istmain
{

public static void main(String[] args) {

Model model=ModelFactory.createDefaultModel();

InputStream in=FileManager.get().open("Module.owl");
model.read(in,null,"RDF/XML");
model.write(System.out);
}

_



















Re: fuseki 2.3.0 startup failed in tomcat

2015-08-15 Thread Paul Tyson
Never mind, this was an unrelated problem in server.xml file.

Regards,
--Paul

On Sat, 2015-08-15 at 12:06 -0500, Paul Tyson wrote:
> I dropped fuseki.war in webapps directory of tomcat.
> 
> The server.xml has been configured to support another big webapp, but as
> far as I can tell should not exclude other webapps from running.
> 
> fuseki fails to start and leaves these messages in log. Can anyone give
> a clue where to look for root cause? Thanks in advance.
> 
> Aug 14, 2015 10:19:30 PM org.apache.catalina.startup.TldConfig execute
> INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
> Enable debug logging for this logger for a complete list of JARs that
> were scanned but no TLDs were found in them. Skipping unneeded JARs
> during scanning can improve startup time and JSP compilation time.
> Aug 14, 2015 10:19:30 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: One or more listeners failed to start. Full details will be
> found in the appropriate container log file
> Aug 14, 2015 10:19:30 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: Context [/fuseki] startup failed due to previous errors
> Aug 14, 2015 10:19:36 PM org.apache.catalina.startup.TldConfig execute
> INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
> Enable debug logging for this logger for a complete list of JARs that
> were scanned but no TLDs were found in them. Skipping unneeded JARs
> during scanning can improve startup time and JSP compilation time.
> Aug 14, 2015 10:19:36 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: One or more listeners failed to start. Full details will be
> found in the appropriate container log file
> Aug 14, 2015 10:19:36 PM org.apache.catalina.core.StandardContext
> startInternal
> SEVERE: Context [/fuseki] startup failed due to previous errors
> 
> Regards,
> --Paul
> 




fuseki 2.3.0 startup failed in tomcat

2015-08-15 Thread Paul Tyson
I dropped fuseki.war in webapps directory of tomcat.

The server.xml has been configured to support another big webapp, but as
far as I can tell should not exclude other webapps from running.

fuseki fails to start and leaves these messages in log. Can anyone give
a clue where to look for root cause? Thanks in advance.

Aug 14, 2015 10:19:30 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
Enable debug logging for this logger for a complete list of JARs that
were scanned but no TLDs were found in them. Skipping unneeded JARs
during scanning can improve startup time and JSP compilation time.
Aug 14, 2015 10:19:30 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: One or more listeners failed to start. Full details will be
found in the appropriate container log file
Aug 14, 2015 10:19:30 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Context [/fuseki] startup failed due to previous errors
Aug 14, 2015 10:19:36 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
Enable debug logging for this logger for a complete list of JARs that
were scanned but no TLDs were found in them. Skipping unneeded JARs
during scanning can improve startup time and JSP compilation time.
Aug 14, 2015 10:19:36 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: One or more listeners failed to start. Full details will be
found in the appropriate container log file
Aug 14, 2015 10:19:36 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Context [/fuseki] startup failed due to previous errors

Regards,
--Paul



Re: What is the error in code

2015-08-15 Thread kumar rohit
Module,owl is a protege file placed in my desktop folder.

On Sat, Aug 15, 2015 at 6:00 PM, Andy Seaborne  wrote:

> On 15/08/15 17:38, kumar rohit wrote:
>
>> 2.13 is jena version.. I have not placed the Inputstream code in try/catch
>> block, is it the problem?
>>
>
> No idea.  There isn't enough information; all this email thread says so
> far is "there's an exception".
>
> Maybe "in" is null (=> not found)
>
> Maybe Module.owl has a syntax error in the RDF/XML
> Maybe Module.owl is OWL syntax, not RDF.
>
> If Module.owl is a file and not a Java resource, then
>
> RDFDataMgr.read(model, "Module.owl", Lang.RDFXML) ;
>
> is simpler and more direct
>
> Andy
>
>
>
>> On Sat, Aug 15, 2015 at 5:12 PM, Andy Seaborne  wrote:
>>
>> That looks like part of stacktace but missing the exception itself. What
>>> is
>>> it?
>>>
>>> And which version of Jena are you running?
>>>
>>> On 16:26, Sat, 15 Aug 2015 kumar rohit  wrote:
>>>
>>> The closing braces are fine. Its only missed in my email. Actually it

>>> gives
>>>
 me the following error in eclipse.

 "at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
 org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
 com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
 at tutorial.istmain.main(istmain.java:23)"

 On Sat, Aug 15, 2015 at 4:09 PM, Andy Seaborne  wrote:

 On 15/08/15 15:16, kumar rohit wrote:
>
> Hello, what is the problem with this code.. I can not understand even
>>
> the

> error message by eclipse.
>>
>>
> What is the error you are seeing?
>
> (it's missing a closing "}" for start; if this is jena3, then the
>
 imports
>>>
 are wrong - but Eclipse will sort that out with shift-cntr-O)
>
>
>
> __
>> import java.io.InputStream;
>>
>> import com.hp.hpl.jena.rdf.model.Model;
>> import com.hp.hpl.jena.rdf.model.ModelFactory;
>> import com.hp.hpl.jena.util.FileManager;
>>
>> public class istmain
>> {
>>
>> public static void main(String[] args) {
>>
>> Model model=ModelFactory.createDefaultModel();
>>
>> InputStream in=FileManager.get().open("Module.owl");
>> model.read(in,null,"RDF/XML");
>> model.write(System.out);
>> }
>>
>> _
>>
>>
>>
>

>>>
>>
>


Re: What is the error in code

2015-08-15 Thread Andy Seaborne

On 15/08/15 17:38, kumar rohit wrote:

2.13 is jena version.. I have not placed the Inputstream code in try/catch
block, is it the problem?


No idea.  There isn't enough information; all this email thread says so 
far is "there's an exception".


Maybe "in" is null (=> not found)

Maybe Module.owl has a syntax error in the RDF/XML
Maybe Module.owl is OWL syntax, not RDF.

If Module.owl is a file and not a Java resource, then

RDFDataMgr.read(model, "Module.owl", Lang.RDFXML) ;

is simpler and more direct

Andy



On Sat, Aug 15, 2015 at 5:12 PM, Andy Seaborne  wrote:


That looks like part of stacktace but missing the exception itself. What is
it?

And which version of Jena are you running?

On 16:26, Sat, 15 Aug 2015 kumar rohit  wrote:


The closing braces are fine. Its only missed in my email. Actually it

gives

me the following error in eclipse.

"at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
at tutorial.istmain.main(istmain.java:23)"

On Sat, Aug 15, 2015 at 4:09 PM, Andy Seaborne  wrote:


On 15/08/15 15:16, kumar rohit wrote:


Hello, what is the problem with this code.. I can not understand even

the

error message by eclipse.



What is the error you are seeing?

(it's missing a closing "}" for start; if this is jena3, then the

imports

are wrong - but Eclipse will sort that out with shift-cntr-O)




__
import java.io.InputStream;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileManager;

public class istmain
{

public static void main(String[] args) {

Model model=ModelFactory.createDefaultModel();

InputStream in=FileManager.get().open("Module.owl");
model.read(in,null,"RDF/XML");
model.write(System.out);
}

_














Re: What is the error in code

2015-08-15 Thread kumar rohit
2.13 is jena version.. I have not placed the Inputstream code in try/catch
block, is it the problem?

On Sat, Aug 15, 2015 at 5:12 PM, Andy Seaborne  wrote:

> That looks like part of stacktace but missing the exception itself. What is
> it?
>
> And which version of Jena are you running?
>
> On 16:26, Sat, 15 Aug 2015 kumar rohit  wrote:
>
> > The closing braces are fine. Its only missed in my email. Actually it
> gives
> > me the following error in eclipse.
> >
> > "at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
> > org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
> > com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
> > at tutorial.istmain.main(istmain.java:23)"
> >
> > On Sat, Aug 15, 2015 at 4:09 PM, Andy Seaborne  wrote:
> >
> > > On 15/08/15 15:16, kumar rohit wrote:
> > >
> > >> Hello, what is the problem with this code.. I can not understand even
> > the
> > >> error message by eclipse.
> > >>
> > >
> > > What is the error you are seeing?
> > >
> > > (it's missing a closing "}" for start; if this is jena3, then the
> imports
> > > are wrong - but Eclipse will sort that out with shift-cntr-O)
> > >
> > >
> > >
> > >> __
> > >> import java.io.InputStream;
> > >>
> > >> import com.hp.hpl.jena.rdf.model.Model;
> > >> import com.hp.hpl.jena.rdf.model.ModelFactory;
> > >> import com.hp.hpl.jena.util.FileManager;
> > >>
> > >> public class istmain
> > >> {
> > >>
> > >> public static void main(String[] args) {
> > >>
> > >> Model model=ModelFactory.createDefaultModel();
> > >>
> > >> InputStream in=FileManager.get().open("Module.owl");
> > >> model.read(in,null,"RDF/XML");
> > >> model.write(System.out);
> > >> }
> > >>
> > >> _
> > >>
> > >>
> > >
> >
>


Re: What is the error in code

2015-08-15 Thread Andy Seaborne
That looks like part of stacktace but missing the exception itself. What is
it?

And which version of Jena are you running?

On 16:26, Sat, 15 Aug 2015 kumar rohit  wrote:

> The closing braces are fine. Its only missed in my email. Actually it gives
> me the following error in eclipse.
>
> "at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
> org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
> com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
> at tutorial.istmain.main(istmain.java:23)"
>
> On Sat, Aug 15, 2015 at 4:09 PM, Andy Seaborne  wrote:
>
> > On 15/08/15 15:16, kumar rohit wrote:
> >
> >> Hello, what is the problem with this code.. I can not understand even
> the
> >> error message by eclipse.
> >>
> >
> > What is the error you are seeing?
> >
> > (it's missing a closing "}" for start; if this is jena3, then the imports
> > are wrong - but Eclipse will sort that out with shift-cntr-O)
> >
> >
> >
> >> __
> >> import java.io.InputStream;
> >>
> >> import com.hp.hpl.jena.rdf.model.Model;
> >> import com.hp.hpl.jena.rdf.model.ModelFactory;
> >> import com.hp.hpl.jena.util.FileManager;
> >>
> >> public class istmain
> >> {
> >>
> >> public static void main(String[] args) {
> >>
> >> Model model=ModelFactory.createDefaultModel();
> >>
> >> InputStream in=FileManager.get().open("Module.owl");
> >> model.read(in,null,"RDF/XML");
> >> model.write(System.out);
> >> }
> >>
> >> _
> >>
> >>
> >
>


Re: What is the error in code

2015-08-15 Thread kumar rohit
The closing braces are fine. Its only missed in my email. Actually it gives
me the following error in eclipse.

"at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:70)
com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:277)
at tutorial.istmain.main(istmain.java:23)"

On Sat, Aug 15, 2015 at 4:09 PM, Andy Seaborne  wrote:

> On 15/08/15 15:16, kumar rohit wrote:
>
>> Hello, what is the problem with this code.. I can not understand even the
>> error message by eclipse.
>>
>
> What is the error you are seeing?
>
> (it's missing a closing "}" for start; if this is jena3, then the imports
> are wrong - but Eclipse will sort that out with shift-cntr-O)
>
>
>
>> __
>> import java.io.InputStream;
>>
>> import com.hp.hpl.jena.rdf.model.Model;
>> import com.hp.hpl.jena.rdf.model.ModelFactory;
>> import com.hp.hpl.jena.util.FileManager;
>>
>> public class istmain
>> {
>>
>> public static void main(String[] args) {
>>
>> Model model=ModelFactory.createDefaultModel();
>>
>> InputStream in=FileManager.get().open("Module.owl");
>> model.read(in,null,"RDF/XML");
>> model.write(System.out);
>> }
>>
>> _
>>
>>
>


Re: What is the error in code

2015-08-15 Thread Andy Seaborne

On 15/08/15 15:16, kumar rohit wrote:

Hello, what is the problem with this code.. I can not understand even the
error message by eclipse.


What is the error you are seeing?

(it's missing a closing "}" for start; if this is jena3, then the 
imports are wrong - but Eclipse will sort that out with shift-cntr-O)




__
import java.io.InputStream;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileManager;

public class istmain
{

public static void main(String[] args) {

Model model=ModelFactory.createDefaultModel();

InputStream in=FileManager.get().open("Module.owl");
model.read(in,null,"RDF/XML");
model.write(System.out);
}

_





What is the error in code

2015-08-15 Thread kumar rohit
Hello, what is the problem with this code.. I can not understand even the
error message by eclipse.

__
import java.io.InputStream;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileManager;

public class istmain
{

public static void main(String[] args) {

Model model=ModelFactory.createDefaultModel();

InputStream in=FileManager.get().open("Module.owl");
model.read(in,null,"RDF/XML");
model.write(System.out);
}

_