commons-rdf | Common Java interfaces for RDF-1.1 libraries | Data Manipulation library

 by   commons-rdf Java Version: apache-import-20150327 License: Apache-2.0

kandi X-RAY | commons-rdf Summary

kandi X-RAY | commons-rdf Summary

commons-rdf is a Java library typically used in Utilities, Data Manipulation applications. commons-rdf has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub, Maven.

Working repository for experimenting with idea of providing a common library for RDF 1.1 that could be implemented by the upcoming versions of the main Java toolkits (Jena 3.0 and Sesame 4.0) as well as wrappers for other JVM languages (Banana RDF and so on). The main motivation behind this simple library is revise an historical incompatibility issue. This library does not pretend to be a generic api wrapping those libraries, but a set of interfaces for the RDF 1.1 concepts that can be used to expose common RDF-1.1 concepts using common Java interfaces. In the initial phase commons-rdf is focused on a subset of the core concepts defined by RDF-1.1 (IRI, Blank Node, Literal, Triple, and Graph). In particular, commons RDF aims to provide a type-safe, non-general API that covers RDF 1.1. In a future phase we may define interfaces for Datasets and Quads.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              commons-rdf has a low active ecosystem.
              It has 30 star(s) with 9 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 33 have been closed. On average issues are closed in 54 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of commons-rdf is apache-import-20150327

            kandi-Quality Quality

              commons-rdf has 0 bugs and 0 code smells.

            kandi-Security Security

              commons-rdf has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              commons-rdf code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              commons-rdf is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              commons-rdf releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              commons-rdf saves you 742 person hours of effort in developing the same functionality from scratch.
              It has 1712 lines of code, 145 functions and 30 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed commons-rdf and discovered the below as its top functions. This is intended to give you an instant insight into commons-rdf implemented functionality, and help decide if they suit your requirements.
            • Checks if this object equals the given object
            • Returns the data type
            • Get language tag
            • Returns the lexical form of the element
            • Compares this object to another
            • Returns the URI of the IP attribute
            • Returns a string representation of the triples
            • Obtain a stream of triples for the given subject and object predicate
            • Check if the triples contains an RDF term
            • Returns true if the triples contain the given triple
            • Create blank node
            • Create a blank node
            • Compares two blank nodes
            • Returns an immutable hashCode of this object
            • Returns an immutable hash code of this URI
            • Removes all triples
            • Returns a string representation of this triples
            • Compares this object to another field
            • This method returns a unique hash code
            • Implementation of hashCode
            • Returns the IIiString of this object
            • Returns the hashCode of this field
            • Get the number of triples in this field
            • Returns the IRI for the given IRI
            • Compares this trie for equality
            • Returns a string representation of the field
            Get all kandi verified functions for this library.

            commons-rdf Key Features

            No Key Features are available at this moment for commons-rdf.

            commons-rdf Examples and Code Snippets

            No Code Snippets are available at this moment for commons-rdf.

            Community Discussions

            QUESTION

            OWL API NoSuchMethodError in saveOntology() call
            Asked 2022-Jan-31 at 10:43

            I am trying to call an OWL API java program through terminal and it crashes, while the exact same code is running ok when I run it in IntelliJ.

            The exception that rises in my main code is this:

            ...

            ANSWER

            Answered 2022-Jan-31 at 10:43

            As can be seen in the comments of the post, my problem is fixed, so I thought I'd collect a closing answer here to not leave the post pending.

            The actual solution: As explained here nicely by @UninformedUser, the issue was that I had conflicting maven package versions in my dependencies. Bringing everything in sync with each other solved the issue.

            Incidental solution: As I wrote in the comments above, specifically defining 3.3.0 for the maven-assembly-plugin happened to solve the issue. But this was only chance, as explained here by @Ignazio, just because the order of "assembling" things changed, overwriting the conflicting package.

            Huge thanks to both for the help.

            Source https://stackoverflow.com/questions/70854565

            QUESTION

            Explanations in Consistent OWL Ontologies
            Asked 2022-Jan-08 at 19:43

            I want to programmatically get explanations for inferred axioms in consistent ontologies, in a similar manner that one can do in the Protégé UI. I cannot find any straightforward way. I have found the owlexplanation repo, but I cannot for the life of me solve the dependency issues to set up the owlexplanation environment. I have also browsed the javadoc of owlapi regarding explanations (to avoid the other repo altogether), but I don't see anything useful beyond what I can already see browsing the Java source code.

            I have thought of simply negating the inferred axiom, to get explanations through inconsistencies, but I would prefer something cleaner, and I am not sure this approach is correct anyway.

            Other (possibly) useful context:

            • I had used some Java years ago, but I now primarily use Python (I try to use OWL API with JPype and OWL in general with Owlready2).
            • I am using HermiT reasoner (again through JPype) (according to build.xml file, latest stable version 1.3.8).
            • I have managed to get explanations for unsatisfiability and inconsistency in my setup, without owlexplanation, following this example from the HermiT source code.
            • I fell in the rabbit hole wanting to make a usable .jar file for owlexplanation, in order to add it in my JPype classpath. My plan went sideways when I couldn't get the Java project to build in the first place.
            • I am using Intellij IDE.

            I would appreciate any insight or tips.

            UPDATE Jan 6, 2022:

            I decided to try once more with the owlexplanation code with a clean head so here is where I am at:

            • Downloaded the source code from github and extracted the zip.
            • Started IntelliJ and instead from "Creating a project from Existing sources", I clicked "Open" and selected the extracted directory.
            • I built the project and it did successfully.
            • From Maven tools, I run clean, validate, compile and test succesfully.
            • If I run "package" Maven action, it throws as error that "The environment variable JAVA_HOME is not correctly set". The thing is that if I go File>Project Structure, I see that SDK is set to 11, it's not empty.
            • Additionally, from the pom.xml file I get these problems:
              • Plugin 'org.apache.maven.plugins:maven-gpg-plugin:1.5' not found
              • Plugin 'org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6' not found

            UPDATE Jan 8, 2022: (Trying @Ignazio's answer)

            I created a new IntelliJ project, and added the Maven dependencies @Ignazio mentioned (plus some others like slf4j etc) and I got a working example (I think). Moving to my main project (using JPype), I had to manually download some .jars to include in the classpath (as maven can't be used here). These are the ones downloaded so far:

            ...

            ANSWER

            Answered 2022-Jan-07 at 20:52

            You're not just using the projects but actually building them from scratch, which requires more setup than using the published artifacts.

            Shortcut that uses Maven available jars (via Maven Central, although other public repositories should do just as well)

            Java code:

            Source https://stackoverflow.com/questions/70593249

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install commons-rdf

            You can download it from GitHub, Maven.
            You can use commons-rdf like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the commons-rdf component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/commons-rdf/commons-rdf.git

          • CLI

            gh repo clone commons-rdf/commons-rdf

          • sshUrl

            git@github.com:commons-rdf/commons-rdf.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link