Re: [Tracker] nfo:Image identifier

On 21/09/10 14:55, MichaÅ Frynas wrote:
I have following problem. I'm developing a new ontology handling profile
data. One of the attributes the profile contains is its icon. I'm trying
to reuse some parts of existing Nepomuk ontologies, and that's why I'd
like to utilize one of nfo:Icon or nfo:Image classes. I've written
following description:

mpo:hasIcon a rdf:Property ;
     rdfs:label "hasIcon" ;
     rdfs:comment "Reference to the icon assocciated with current profile" ;
     nrl:maxCardinality 1 ;
     rdfs:domain mpo:Profile ;
     rdfs:range nfo:Image .

After uploading my ontology, I import a ttl file having following dataset:

<MyCar> a mpo:Profile ;
         mpo:name "Car" ;
         mpo:hasIcon "urn:uuid:981e3c86-b0be-e38c-f224-cc2dce8810c5" ;
         mpo:xpos 10 ;
         mpo:ypos 12 .

where mpo:hasIcon is the Image Id i've received using that query: select
?s { ?s a nfo:Image .}
And now, when I try to get my data using following query, I get nothing:
select ?s ?t { ?s a mpo:Profile; mpo:hasIcon ?t . }
Maybe someone knows what is wrong with it.
Is that ID urn:uuid:981e3c86-b0be-e38c-f224-cc2dce8810c5 a correct ID of

Yes, it is a unique identifier for the resource in the database. Most resources are described this way. You can find out what information we know about a given resource using tracker-info <urn>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]