Giter Club home page Giter Club logo

Comments (10)

masthom avatar masthom commented on August 30, 2024 1

Ok, I see... I've been using a metadata file with some outdated (?) labels for some of the elements, like <title> instead of <scoreTitle>, <collectionName> instead of <collectionLabel> etc. (The old labels worked fine with 1.3.6.) Now 1.3.7 runs perfectly well and all expected chord:modifier statements are appearing. Thank you!
For 1.3.8 I probably have to check my java installation... Receiving this report:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: de/wwu/music2rdf/converter/Converter has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

For now I am fine with 1.3.7! Thanks a lot again!
Best, Thomas

from musicowl.

jimjonesbr avatar jimjonesbr commented on August 30, 2024

Hello there. Thanks for reporting and for the kind words.
Due to lack of funding I had to abandon this project a few years ago, but I'm glad to take a look at this bug. I wrote more than 50 automated tests, but it seems I didn't exhaust all possibilities :) Could you send me the XML file that is causing the problem (or a fraction of it), so that I can reproduce the issue myself?

If remember it correctly, I wrote the script to set the accidentals of a note based on the key, or in case it is changed in a certain measure all subsequent notes inherit the "new" accidental. As a matter of fact, I even wrote a few test cases to cover that... so I might have forgot something. I haven't touched this code in a while, so I hope it doesn't take too long for me to find the problem. If you could send me the file, it would help a lot.

Cheers,
Jim

from musicowl.

masthom avatar masthom commented on August 30, 2024

Hi!

Thanks for the quick reply. Here's the XML file:

Accid_Tie_Test_xml.txt

I modified it a bit to show some more details: In fact, the chord:modifier statements are only missing if the note is tied to a note in a preceding measure. If the preceding note is in the same measure all is fine.

Accid_Tie_Test

So the issue only occurs with the first notes in a measure: "..._NOTE_0", in this example ms. 2 (F sharp) and ms. 4 (F flat).

node:56db3f19-5f9b-4afc-9841-d47e8ec2b359_MOV1_P1_M2_NS_4_NOTE_0
        a              chord:Note ;
        mso:hasOctave  "4"^^xsd:int ;
        chord:natural  note:F .
node:56db3f19-5f9b-4afc-9841-d47e8ec2b359_MOV1_P1_M4_NS_12_NOTE_0
        a              chord:Note ;
        mso:hasOctave  "4"^^xsd:int ;
        chord:natural  note:F .

I am attaching also the resulting TTL file:
Accid_Tie_Test_ttl.txt

Thank you for taking the time!

Best regards, Thomas

from musicowl.

jimjonesbr avatar jimjonesbr commented on August 30, 2024

Hi Thomas,

I just pushed a bug fix. Could you test it?

Best, Jim

from musicowl.

masthom avatar masthom commented on August 30, 2024

Sorry, looks like "Music2RDF Converter 1.3.7" is not running properly - or at least not on my system. I am attaching the reports from the console (versions 1.3.6 vs. 1.3.7):
Reports_MusicOWL136vs137.txt

from musicowl.

jimjonesbr avatar jimjonesbr commented on August 30, 2024

That's odd. The code runs in my machine. Can you send me the metadata file you're using?

from musicowl.

jimjonesbr avatar jimjonesbr commented on August 30, 2024

It does work with this metadata file using 1.3.7 and 1.3.8 (new bug fixes).

output-1.3.8.txt
output-1.3.7.txt

from musicowl.

jimjonesbr avatar jimjonesbr commented on August 30, 2024

Nice it finally worked.

Yes, I had an outdated version of the metadata file. I will also update the documentation and then the maven repo.

Regarding: 1.3.8: I had to upgrade loads of libraries, as the converter was using outdated and unsafe dependencies. I also corrected a bug related to this issue: 7184e31 .. so I recommend you use it :) To use 1.3.8 you need to install Java 11 or greater. Could you please test it? If it works I can close this issue.

If you don't mind my asking: what is your project about? I haven't heard any feedback from the ontology in a while, so I am surprised anyone still uses it :)

from musicowl.

masthom avatar masthom commented on August 30, 2024

Hi Jim,
I finally got my old computer to digest a newer java version.... As expected: 1.3.8 also runs without problems.

Thanks for asking: I work as a musicologist with Stefan Münnich, who had already contacted you some time ago about MusicOWL and who drew my attention to it. (Best regards from him!)
In fact, last semester we organized a little course on music encoding formats at the University of Basel, in which we also dedicated a session to MusicOWL!
To be honest: My involvement with MusicOWL is not really a project at the moment. But I find the approach of RDF graphs for music representation very interesting and experiment from time to time with it to make it (maybe) fruitful for the (e.g. harmonic) analysis of especially post-tonal music (like Anton Webern's).

Thanks again!
Best, Thomas

from musicowl.

jimjonesbr avatar jimjonesbr commented on August 30, 2024

Hi Thomas,

I'm glad it now works as expected.
I also find graphs much more suitable to work with music data than relational data models. However, my experience with RDF Triple Stores isn't the best, as complex SPARQL Queries don't have much room for optimization and they can get very slow for today's standards. Sometime ago I experimented importing and querying MusciOWL data sets into Neo4j, which was incredibly fast and easy to use (Cypher is much more intuitive than SPARQL), but last time I checked the reasoning possibilities were rather limited and you had to program your own rules.

Have fun with your experiments and please tell Stefan that I send my regards!

Best, Jim

from musicowl.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.