0

I consider migrating a project to Apache Jena but can't get my mind around Jena's architecture. In this example...

https://github.com/apache/jena/tree/master/jena-permissions/src/example/java/org/apache/jena/permissions/example

... we make use of the "permissions" package.

But when I try to imitate what they do in the example using Eclipse and importing the *.jar files from apache-jena-3.1.1 as dependencies, the package org.apache.jena.permissions seems to be missing or inaccessible. Other packages such as org.apache.jena.rdf.model are accessible.

How can I access this package? Thank you very much.

-- Okay, I found the package at Maven: https://jena.apache.org/download/maven.html Is this the only way to get it, even if you do not use Maven?

bloxx
  • 123
  • 7

2 Answers2

1

I found the download link on my own. You need to go here to get the package: https://repository.apache.org/content/repositories/releases/org/apache/jena/jena-permissions/

bloxx
  • 123
  • 7
  • 1
    And on maven central: http://central.maven.org/maven2/org/apache/jena/jena-permissions/ Investing time in learning some basic maven (gradle, other) dependency stuff is well worth it. – AndyS Dec 11 '16 at 19:30
1

mvnrepository.com is usually a better place to search for a Java package:

enter image description here

If you still want to include JARs by hand (the link above is highlighted), don't forget to manually resolve the JARs that jena-permissions depends on:

enter image description here

P.S. I side with @AndyS that learning a dependency management system is 100% worth the effort.

berezovskyi
  • 3,133
  • 2
  • 25
  • 30