Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to load Alignment format in python?
    primarykey
    data
    text
    <p>Is there a way to load alignment file to python. If I have file like this:</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8' standalone='no'?&gt; &lt;rdf:RDF xmlns='http://knowledgeweb.semanticweb.org/heterogeneity/alignment#' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:xsd='http://www.w3.org/2001/XMLSchema#' xmlns:align='http://knowledgeweb.semanticweb.org/heterogeneity/alignment#'&gt; &lt;Alignment&gt; &lt;map&gt; &lt;Cell&gt; &lt;entity1 rdf:resource="http://linkeddata.uriburner.com/about/id/entity//www.last.fm/music/Catie+Curtis"&gt;&lt;/entity1&gt; &lt;entity2 rdf:resource="http://discogs.dataincubator.org/artist/catie-curtis"&gt;&lt;/entity2&gt; &lt;relation&gt;=&lt;/relation&gt; &lt;measure rdf:datatype="http://www.w3.org/2001/XMLSchema#float"&gt;1.0&lt;/measure&gt; &lt;/Cell&gt; &lt;/map&gt; &lt;map&gt; &lt;Cell&gt; &lt;entity1 rdf:resource="http://linkeddata.uriburner.com/about/id/entity//www.last.fm/music/Bigelf"&gt;&lt;/entity1&gt; &lt;entity2 rdf:resource="http://discogs.dataincubator.org/artist/bigelf"&gt;&lt;/entity2&gt; &lt;relation&gt;=&lt;/relation&gt; &lt;measure rdf:datatype="http://www.w3.org/2001/XMLSchema#float"&gt;0.8&lt;/measure&gt; &lt;/Cell&gt; &lt;/map&gt; &lt;map&gt; &lt;Cell&gt; &lt;entity1 rdf:resource="http://linkeddata.uriburner.com/about/id/entity//www.last.fm/music/%C3%81kos"&gt;&lt;/entity1&gt; &lt;entity2 rdf:resource="http://discogs.dataincubator.org/artist/%C3%81kos"&gt;&lt;/entity2&gt; &lt;relation&gt;=&lt;/relation&gt; &lt;measure rdf:datatype="http://www.w3.org/2001/XMLSchema#float"&gt;0.9&lt;/measure&gt; &lt;/Cell&gt; &lt;/map&gt; &lt;/Alignment&gt; &lt;/rdf:RDF&gt; </code></pre> <p>I want to keep confidence value as well as triple: Subject:http://linkeddata.uriburner.com/about/id/entity//www.last.fm/music/Catie+Curtis Predicate:owl:SameAs Object:http://discogs.dataincubator.org/artist/catie-curtis Confidence:1.0</p> <p>I was trying to do it with RDFlib, but did not managed to. Any suggestions will help, thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload