Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
rdflib.js Load data into the store from a buffer/string

I want to load an owl.file with rdflib.js based on this tutorial but get the following error:

Error: Error: NamedNode IRI "/ontologies/opcua.owl" must be absolute. while trying to parse </ontologies/opcua.owl> as application/rdf+xml

I "installed" rdflib.js to use in the Browser (with generating a "script" file)
Excerpt of the HTML-File

<script src="rdflib.js/dist/rdflib.min.js"></script>
<script src="javascript/OWL.js"></script>

Javascript Code

const store = $rdf.graph();

var uri = ('/ontologies/opcua.owl').toString();
var mimeType = 'application/rdf+xml';

var body

try {
    $rdf.parse(body, store, uri, mimeType)
} catch (err) {
    console.log(err)
}

Thanks in advance for every hint or remarks to my code.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!