Questions tagged [rdf-xml]

RDF/XML is an RDF serialization (using XML), defined by the W3C

Related tags

  • for question about RDF (not about a specific RDF serialization)
  • for questions about XML

Internet media type

application/rdf+xml

External links

51 questions
1
vote
1 answer

read and write from file using java and the RDF model

I want to read from a file then write it in a RDF/XML model in another file using java, I've done the initial part in reading the file, but i didn't know how to write it in another file withe the RDF/XML model so I cam have the correct format.…
Ghas
  • 15
  • 6
1
vote
1 answer

Converting JsonLd data to RDF/XML by jsonld package

Is it possible to convert Json-Ld data to different RDF/XML format by using 'jsonld' package https://www.npmjs.com/package/jsonld? In the documentation, I found possible to inject RDF parser. // register a custom promise-based RDF…
Przemek
  • 11
  • 2
1
vote
1 answer

Represent relation between services in SOAF

I have some problem about SOAF; service of a friend (extension of FOAF). I want to create a SOAF file like this: December 1 s t 2008 December 21 s t…
hafsi.amal
  • 15
  • 5
1
vote
0 answers

Add tag in rdf/xml

I am trying to compare two OntModels and checking if any class of model1 is missing in model2 then add a tag on model1 class that tells the time when it is deleted from model2. My code detects the missing classes correctly but does not append tag.…
1
vote
0 answers

Why does the Food ontology not use "OWL:NamedIndividual"?

In the food ontology http://www.w3.org/TR/2004/REC-owl-guide-20040210/food#, I am seeing this way of representing classes and individuals:
user697911
  • 10,043
  • 25
  • 95
  • 169
1
vote
1 answer

How to lookup predicates from a subject URINode

I don't realy understand how to read te predicates (URINodes) from a subject URINode. Also, is there anyway to lookup IURINodes by specific predicates values?
Laurens Voncken
  • 215
  • 2
  • 11
1
vote
1 answer

In OWLAPI, how to write RDF/XML including UTF-8 encoding in header

I have an OWLOntology that I need to save to a file using RDFXMLDocumentFormat, and I would like to encode it as UTF-8. Specifically, I would like the file to have the following at the top: Of course, I could…
Willie M
  • 43
  • 5
1
vote
1 answer

Is it possible to abbreviate URLs in RDF/XML attribute values?

I found the following XML snippet:
In short: Does np:issue resolve to urn:library-of-congress:ndnp:mets:newspaper:issue, or not? More…
Matthias Ronge
  • 9,403
  • 7
  • 47
  • 63
1
vote
1 answer

Error: "The markup in the document preceding the root element must be well-formed"

I am getting an error while creating RDF/XML: The markup in the document preceding the root element must be well-formed Can somebody please help me with this error?
bengalurean
  • 69
  • 1
  • 3
  • 10
1
vote
1 answer

RDF/XML for a graph

I wrote the following XML for graph something like: `Person ------> Organization` `Person ------> name` and organization further has on node `Organization----->Title`
Chili Mili
  • 79
  • 1
  • 6
0
votes
0 answers

how to add complex object to RDF graph using dotnetrdf?

I want to create RDF output (here shown as RDF/XML) like this: ... 2019-06-06T00:00:00
0
votes
0 answers

How to parsing rdf xml in Java

I used java dom to parsing rdf xml in java, but I couldn't parsing rdf xml in the direction I wanted. Here is my code : String[] arr = new String[100]; DocumentBuilderFactory factory_parsing = DocumentBuilderFactory.newInstance(); try { …
user20297975
  • 129
  • 8
0
votes
0 answers

How jena SPARQL results in RDF XML format rather than triple

I wrote SPARQL in String queryString "SELECT DISTINCT ?dog ?p ?o " + "WHERE {" + "?dog . " + "?dog ?p ?o. " + "}"; ... while…
user20297975
  • 129
  • 8
0
votes
0 answers

I want to put RDF/XML format directly in SDB

In Jena, I saved RDF/XML documents in SDB using the "read()" method and even created a file with RDF/XML documents in SDB using the "write" method. What I want to try is to save Triple directly in SDB. Here is my code prefix =…
user20297975
  • 129
  • 8
0
votes
2 answers

Why does for-each with if-condition select all instead of specific node's attribute

EDIT: I found a solution that works for me (and it is indeed better to change the RDF syntax, as Conal Tuohy suggested):