Hi Tim,
I’ll have a look soon, probably tomorrow. Out of interest: Have you
been successful using our combined approach?
Best,
Christian
On Tue, Oct 24, 2017 at 4:16 PM, Tim Thompson <timathom@gmail.com> wrote:
> Thanks, Christian. I had a quick question about the expath-pkg.xml file
> (attached). I have two XSLT files that I want to list separately, along with
> listing Saxon-HE (version 9.8.x) as a dependency. However, when I add a
> second dependency element and try to import the package, I get an error:
>
> [bxerr:BXRE0009] Package version is not supported.
>
> Looking at the EXPath package schema[1], it seems as though this should be
> valid (the dependency element should be repeatable).
>
> Tim
>
> [1] http://expath.org/spec/pkg#structure
>
> --
> Tim A. Thompson
> Discovery Metadata Librarian
> Yale University Library
>
>
> On Fri, Oct 20, 2017 at 2:25 PM, Christian Grün <christian.gruen@gmail.com>
> wrote:
>>
>> Hi Tim,
>>
>> Thanks for the link to your RDF library.
>>
>> I’m glad to hear that the new packaging mechanism has already found
>> watchers. I have just uploaded a new snapshot, and I would be glad to
>> have your feedback as first tester ;)
>>
>> > but I wanted to be sure I was going about it correctly because it still
>> > seems a little like magic to me. I am also wondering whether this new
>> > feature is something I might want to take advantage of.
>>
>> I haven’t run any queries yet with your module, but the package
>> structure looks fine.
>>
>> Our experience over the years is that the EXPath packaging mechanism
>> is a bit difficult to understand, and not as portable as we believe it
>> could be. It would be nice, for example, if a package could be
>> distributed without implementation-specific details inside. But it’s
>> always easy to complain, and it takes a lot of time to get things
>> going.
>>
>> For our own use cases, the simple packaging mechanism is just good
>> enough. It would be nice if we could add some versioning support in
>> the future, though.
>>
>> Cheers
>> Christian
>>
>>
>>
>> > The module (https://github.com/timathom/basex-rdf ) uses Günther
>> > Rademacher's
>> > REx Parser Generator[1] to create a Java parser for the RDF TriG/Turtle
>> > syntax[2], using the BaseX extension function option.
>> >
>> > Following the BaseX documentation[3], I have created a XAR package that
>> > includes the JAR file and an XQuery wrapper. The wrapper calls the
>> > function
>> > exposed by the Java module (import module namespace trig =
>> > "org.basex.modules.rdf.TriG";) and then processes the raw parse tree,
>> > overlaying some additional abstractions (I confess that I cheated and
>> > used
>> > XSLT for most of the processing functionality).
>> >
>> > Because of the built-in BaseX extension function, this approach seems
>> > different from a straightforward "combined" module approach, but, again,
>> > I
>> > wanted to ask whether the way I'm doing this seems correct.
>> >
>> > Thanks in advance.
>> >
>> > Tim
>> >
>> > [1] http://www.bottlecaps.de/rex/
>> > [2] https://www.w3.org/TR/trig/
>> > [3] docs.basex.org/wiki/Repository
>> >
>> > --
>> > Tim A. Thompson
>> > Discovery Metadata Librarian
>> > Yale University Library
>> >
>
>