[Pinto] Is stable?

113 views
Skip to first unread message

Oleg Pavlov

unread,
Aug 23, 2016, 9:56:37 AM8/23/16
to Empire
Hello.
I'm trying to use pinto library, but I have some problems with it.

1. I download pinto source code and try to run gradle test, but after that I get assert error in "testWriteMap".
2. I run gradle jar and include the .jar to my pet project and try to do RDFMapper rdfMapper = RDFMapper.create() and after that I get java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector .

Question: How to properly build the source code and include it to my project?

Thank you for your answers!

Michael Grove

unread,
Aug 23, 2016, 10:05:10 AM8/23/16
to empir...@googlegroups.com
On Tue, Aug 23, 2016 at 9:51 AM, Oleg Pavlov <opavl...@gmail.com> wrote:
> Hello.
> I'm trying to use pinto library, but I have some problems with it.
>
> 1. I download pinto source code and try to run gradle test, but after that I
> get assert error in "testWriteMap".

`./gradlew test` on master works fine for me.

> 2. I run gradle jar and include the .jar to my pet project and try to do
> RDFMapper rdfMapper = RDFMapper.create() and after that I get
> java.lang.NoClassDefFoundError:
> org/apache/commons/beanutils/BeanIntrospector .

You can't cherry pick jars to include in your project, that's not the
right way to use gradle/maven. You should install it into your local
maven/gradle repo and pull from there like a normal dependency.

Cheers,

Mike

>
> Question: How to properly build the source code and include it to my
> project?
>
> Thank you for your answers!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Empire" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to empire-rdf+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Oleg Pavlov

unread,
Aug 23, 2016, 5:07:54 PM8/23/16
to Empire
Thank you for your answer, Mike!

But, Models.isomorphic(aGraph, ModelIO.read(Files3.classPath("/data/map.nt").toPath()), in the test, returns false.


вторник, 23 августа 2016 г., 17:05:10 UTC+3 пользователь mhgrove написал:

Michael Grove

unread,
Aug 24, 2016, 1:21:28 PM8/24/16
to empir...@googlegroups.com
On Tue, Aug 23, 2016 at 5:07 PM, Oleg Pavlov <opavl...@gmail.com> wrote:
> Thank you for your answer, Mike!
>
> But, Models.isomorphic(aGraph,
> ModelIO.read(Files3.classPath("/data/map.nt").toPath()), in the test,
> returns false.
>

`./gradlew test` passes on both master and develop for me. So there's
not much I can do unless you can explain how to reproduce that result.

Cheers,

Mike

Oleg Pavlov

unread,
Aug 25, 2016, 11:28:49 AM8/25/16
to Empire
Thank you for your answers Mike!

I just clone git repository by git clone https://github.com/Complexible/pinto.git and run ./gradlew build and get assert error.

среда, 24 августа 2016 г., 20:21:28 UTC+3 пользователь mhgrove написал:
image4.jpg

Michael Grove

unread,
Aug 25, 2016, 11:37:04 AM8/25/16
to empir...@googlegroups.com
Then I'm going to have to suggest you look into why it's failing on
your machine. Those exact steps on my machine work as expected. If
there's something I'm doing, or not, in the build setup that doesn't
work for your environment, please let me know.

Cheers,

Mike

Oleg Pavlov

unread,
Aug 25, 2016, 12:40:23 PM8/25/16
to empir...@googlegroups.com
Which is operation system are you using?

I've tried run it on Ubuntu 16.04 and 14.04.

Oleg


> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Empire" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/empire-rdf/NGcEXPzx-Ik/unsubscribe.
To unsubscribe from this group and all its topics, send an email to empire-rdf+unsubscribe@googlegroups.com.

Michael Grove

unread,
Aug 25, 2016, 12:45:28 PM8/25/16
to empir...@googlegroups.com
On Thu, Aug 25, 2016 at 12:40 PM, Oleg Pavlov <opavl...@gmail.com> wrote:
> Which is operation system are you using?

OSX 10.11.6 with Java 1.8.0_73

Cheers,

Mike
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Empire" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/empire-rdf/NGcEXPzx-Ik/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to

Oleg Pavlov

unread,
Aug 26, 2016, 7:16:26 AM8/26/16
to empir...@googlegroups.com
I've tried to build the project on 3 sepatated machine (clean ubuntu 14.04, Windows 7, OSX 10.11.6). Result is the same.

Oleg


>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Empire" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/empire-rdf/NGcEXPzx-Ik/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to

>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Empire" group.
> To unsubscribe from this group and stop receiving emails from it, send an

> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Empire" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/empire-rdf/NGcEXPzx-Ik/unsubscribe.
To unsubscribe from this group and all its topics, send an email to empire-rdf+unsubscribe@googlegroups.com.

Michael Grove

unread,
Aug 26, 2016, 7:23:05 AM8/26/16
to empir...@googlegroups.com
Oleg,

On Fri, Aug 26, 2016 at 7:16 AM, Oleg Pavlov <opavl...@gmail.com> wrote:
> I've tried to build the project on 3 sepatated machine (clean ubuntu 14.04,
> Windows 7, OSX 10.11.6). Result is the same.

I'm not sure what I can do to help you debug the failure you're seeing
on your machine. If you want to try actually debugging it and explain
what you're seeing I can try to venture a guess and what might be
going on.

Cheers,

Mike
>> >> You received this message because you are subscribed to a topic in the
>> >> Google Groups "Empire" group.
>> >> To unsubscribe from this topic, visit
>> >> https://groups.google.com/d/topic/empire-rdf/NGcEXPzx-Ik/unsubscribe.
>> >> To unsubscribe from this group and all its topics, send an email to
>> >> empire-rdf+...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Empire" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to empire-rdf+...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Empire" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/empire-rdf/NGcEXPzx-Ik/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to

Антон Александров

unread,
Oct 2, 2016, 7:05:49 AM10/2/16
to Empire
Hello, Mike.

What is first step to configure environment for development?

I have problems with install to local repo.

 bioqwer$ java -version


java version "1.8.0_102"


Java(TM) SE Runtime Environment (build 1.8.0_102-b14)


Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

Empire bioqwer$ ./gradlew  install



:core:compileJava

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:112: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

import sun.reflect.generics.reflectiveObjects.WildcardTypeImpl;

                                             
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:54: warning: ParameterizedTypeImpl is internal proprietary API and may be removed in a future release

import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl;

                                             
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:55: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

import sun.reflect.generics.reflectiveObjects.WildcardTypeImpl;

                                             
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:18: error: package com.sun.mirror.apt does not exist

import com.sun.mirror.apt.AnnotationProcessorFactory;

                         
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:19: error: package com.sun.mirror.apt does not exist

import com.sun.mirror.apt.AnnotationProcessor;

                         
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:20: error: package com.sun.mirror.apt does not exist

import com.sun.mirror.apt.AnnotationProcessorEnvironment;

                         
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:21: error: package com.sun.mirror.apt does not exist

import com.sun.mirror.apt.AnnotationProcessors;

                         
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:22: error: package com.sun.mirror.apt does not exist

import com.sun.mirror.apt.RoundCompleteListener;

                         
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:23: error: package com.sun.mirror.apt does not exist

import com.sun.mirror.apt.RoundCompleteEvent;

                         
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:25: error: package com.sun.mirror.declaration does not exist

import com.sun.mirror.declaration.AnnotationTypeDeclaration;

                                 
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:26: error: package com.sun.mirror.declaration does not exist

import com.sun.mirror.declaration.Declaration;

                                 
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:27: error: package com.sun.mirror.declaration does not exist

import com.sun.mirror.declaration.ClassDeclaration;

                                 
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:29: error: package com.sun.mirror.util does not exist

import com.sun.mirror.util.SimpleDeclarationVisitor;

                         
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:66: error: cannot find symbol

public final class EmpireAnnotationProcessorFactory implements AnnotationProcessorFactory {

                                                               
^

  symbol
: class AnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:101: error: cannot find symbol

 
public AnnotationProcessor getProcessorFor(final Set<AnnotationTypeDeclaration> theDeclarations,

                                                     
^

  symbol
:   class AnnotationTypeDeclaration

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:102: error: cannot find symbol

   
final AnnotationProcessorEnvironment theEnvironment) {

         
^

  symbol
:   class AnnotationProcessorEnvironment

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:101: error: cannot find symbol

 
public AnnotationProcessor getProcessorFor(final Set<AnnotationTypeDeclaration> theDeclarations,

       
^

  symbol
:   class AnnotationProcessor

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:119: error: cannot find symbol

 
private class SimpleAnnotationProcessor implements AnnotationProcessor {

                                                   
^

  symbol
:   class AnnotationProcessor

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:121: error: cannot find symbol

 
private AnnotationProcessorEnvironment mEnv;

         
^

  symbol
:   class AnnotationProcessorEnvironment

  location
: class EmpireAnnotationProcessorFactory.SimpleAnnotationProcessor

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:123: error: cannot find symbol

 
private SimpleAnnotationProcessor(final AnnotationProcessorEnvironment theEnv) {

                                         
^

  symbol
:   class AnnotationProcessorEnvironment

  location
: class EmpireAnnotationProcessorFactory.SimpleAnnotationProcessor

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:186: error: cannot find symbol

 
private class Collector implements Predicate<Declaration> {

                                             
^

  symbol
:   class Declaration

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:214: error: cannot find symbol

 
private static class CollectorVisitor extends SimpleDeclarationVisitor {

                                               
^

  symbol
:   class SimpleDeclarationVisitor

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:204: error: cannot find symbol

 
public boolean apply(Declaration theDeclaration) {

                     
^

  symbol
:   class Declaration

  location
: class EmpireAnnotationProcessorFactory.Collector

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:232: error: cannot find symbol

 
public void visitClassDeclaration(ClassDeclaration theDeclaration) {

                                   
^

  symbol
:   class ClassDeclaration

  location
: class CollectorVisitor

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:1105: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

 
else if (aType instanceof WildcardTypeImpl) {

                           
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:1106: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

 
WildcardTypeImpl aWildcard = (WildcardTypeImpl) aType;

 
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:1106: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

 
WildcardTypeImpl aWildcard = (WildcardTypeImpl) aType;

                               
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:556: warning: ParameterizedTypeImpl is internal proprietary API and may be removed in a future release

 
if (generics != null && generics instanceof ParameterizedTypeImpl) {

                                             
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:557: warning: ParameterizedTypeImpl is internal proprietary API and may be removed in a future release

 
for (Type t : ((ParameterizedTypeImpl)generics).getActualTypeArguments()) {

                 
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:561: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

 
if (t instanceof WildcardTypeImpl) {

                 
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:562: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

 
WildcardTypeImpl aWildcard = (WildcardTypeImpl) t;

 
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:562: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release

 
WildcardTypeImpl aWildcard = (WildcardTypeImpl) t;

                               
^

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:103: error: cannot find symbol

 
AnnotationProcessor aProcessor;

 
^

  symbol
:   class AnnotationProcessor

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:106: error: cannot find symbol

 aProcessor
= AnnotationProcessors.NO_OP;

             
^

  symbol
:   variable AnnotationProcessors

  location
: class EmpireAnnotationProcessorFactory

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:126: error: cannot find symbol

 mEnv
.addListener(new RoundCompleteListener() {

                     
^

  symbol
:   class RoundCompleteListener

  location
: class EmpireAnnotationProcessorFactory.SimpleAnnotationProcessor

/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/util/apt/EmpireAnnotationProcessorFactory.java:175: error: cannot find symbol

 
Iterables2.each(mEnv.getDeclarationsAnnotatedWith((AnnotationTypeDeclaration) mEnv.getTypeDeclaration(aClass)),

                                                   
^

  symbol
:   class AnnotationTypeDeclaration

  location
: class EmpireAnnotationProcessorFactory.SimpleAnnotationProcessor

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

25 errors

11 warnings

:core:compileJava FAILED




FAILURE
: Build failed with an exception.

* What went wrong:

Execution failed for task ':core:compileJava'.

> Compilation failed; see the compiler error output for details.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

 

Total time: 10.076 secs




пятница, 26 августа 2016 г., 14:23:05 UTC+3 пользователь mhgrove написал:

Michael Grove

unread,
Oct 2, 2016, 7:09:04 AM10/2/16
to empir...@googlegroups.com
Looks like you're trying to compile an old version of Empire, you
should be building from develop.

Cheers,

Mike

Антон Александров

unread,
Oct 2, 2016, 7:18:03 AM10/2/16
to empir...@googlegroups.com
Thank you, Mike, build success.  

What about warnings for deprecated API ?

:core:compileJava
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:110: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
import sun.reflect.generics.reflectiveObjects.WildcardTypeImpl;
                                             ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:52: warning: ParameterizedTypeImpl is internal proprietary API and may be removed in a future release
import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl;
                                             ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:53: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
import sun.reflect.generics.reflectiveObjects.WildcardTypeImpl;
                                             ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:1055: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
else if (aType instanceof WildcardTypeImpl) {
                          ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:1056: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
WildcardTypeImpl aWildcard = (WildcardTypeImpl) aType;
^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/annotation/RdfGenerator.java:1056: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
WildcardTypeImpl aWildcard = (WildcardTypeImpl) aType;
                              ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:554: warning: ParameterizedTypeImpl is internal proprietary API and may be removed in a future release
if (generics != null && generics instanceof ParameterizedTypeImpl) {
                                            ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:555: warning: ParameterizedTypeImpl is internal proprietary API and may be removed in a future release
for (Type t : ((ParameterizedTypeImpl)generics).getActualTypeArguments()) {
                ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:559: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
if (t instanceof WildcardTypeImpl) {
                ^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:560: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
WildcardTypeImpl aWildcard = (WildcardTypeImpl) t;
^
/Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/codegen/InstanceGenerator.java:560: warning: WildcardTypeImpl is internal proprietary API and may be removed in a future release
WildcardTypeImpl aWildcard = (WildcardTypeImpl) t;
                              ^
Note: /Users/bioqwer/Development/Empire/core/main/src/com/clarkparsia/empire/ds/impl/SparqlEndpointDataSource.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

С Уважением,
Александров Антон.

2 окт. 2016 г., в 14:09, Michael Grove <mi...@stardog.com> написал(а):

Michael Grove

unread,
Oct 3, 2016, 8:51:12 AM10/3/16
to empir...@googlegroups.com
You're safe to ignore them, I'm just using some internal java stuff to
help with the instance generation.

Cheers,

Mike

On Sun, Oct 2, 2016 at 7:17 AM, Антон Александров
Reply all
Reply to author
Forward
0 new messages