Apache Jena (https://jena.apache.org/). It can be used in various ways: from the command line; as a background service on the machine; embedded; as well as a server (Fuseki). Runs of the JVM. (Disclosure: I contribute to this project). Other open source triple stores and RDF toolkits are available (Java, Ruby, Python, Javascript, ...).