Note that there are some explanatory texts on larger screens.

plurals
  1. PORemoving individuals & properties from RDF
    primarykey
    data
    text
    <p>I have a RDF file in my semantic web project and I use Rowlex for manipulating it. I've needed to remove an individual from RDF, so I used </p> <pre><code>&lt;RDFDoc instance&gt;.RemoveIndividual(new OwlThing(&lt;individual URI&gt;, &lt;RDFDoc instance&gt;)); </code></pre> <p>With this code, I had my individual gone, but it's properties still remained. So I figured out that I should remove it's properties first. Besides I didn't find a command for removing all properties together. So, <strong>Question1</strong>: is there a way to remove an individual with all it's properties? or, can I remove all properties in one line of code and not one by one? And how can I remove properties with multiple values. For instance three StudyLists, in example down page.</p> <p>On the other hand, when I tried to remove a property, for example 'useSudyList' from student individual, by this code:</p> <pre><code>student.RemoveuseStudyList(student.useStudyList); </code></pre> <p>I found my RDF file:</p> <pre><code>&lt;Ontologyowl:Student rdf:about="ehsanm"&gt; //other properties &lt;Ontologyowl:useStudyList&gt; &lt;Ontologyowl:StudyList rdf:about="stdl184516"/&gt; &lt;/Ontologyowl:useStudyList&gt; &lt;/Ontologyowl:Student&gt; </code></pre> <p>... became like this:</p> <pre><code>&lt;Ontologyowl:Student rdf:about="ehsanm"&gt; //other properties &lt;/Ontologyowl:Student&gt; &lt;Ontologyowl:StudyList rdf:about="stdl184516"/&gt; </code></pre> <p>Thus the property was thrown out. I don't have this issue with literal properties. <strong>Question2</strong>: what's the problem?</p> <p>Thanks for your attention, and help, in advance.</p>
    singulars
    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