number of Instances of a custom class declared in a schema

30 Views Asked by At

I have an example of this data and its rdf schema:

enter image description here

and the schema

    #Dimension - row 
  :GeographicalRegion 
     rdfs:subClassOf scovo:Dimension;    
     dc:title "Police force area, English region and Wales". 
        
   #Dimensions - columns 
  :CriminalOffenceType rdf:type owl:Class ;      
    rdfs:subClassOf scovo:Dimension .

When they load the data and try to present it with this schema

:Cleveland rdf:type crime:GeographicalRegion;    dc:title "Cleveland". 
  # skippinf the declarations of instances  of the other regions... 

 :Criminaldamage rdf:type :CriminalOffenceType;      dc:title "Criminal damage".
 :Drugoffences rdf:type :CriminalOffenceType;        dc:title "Drug offences".
 :Criminaldamage rdf:type :CriminalOffenceType;      dc:title "Criminal damage".
 :Drugoffences rdf:type :CriminalOffenceType;        dc:title "Drug offences".
 # skipping the declarations of instances  of the other offence types... 

And for example after tha twe have

:ds1_27_10 rdf:type scovo:Item; 
     rdf:value **1,362;** 
     scovo:dataset :ds1; 
     **scovo:dimension :Drugoffences;** 
     scovo:dimension :Bedfordshire;  
     scovo:dimension :TP2008_09. 

:ds1_29_10 rdf:type scovo:Item; 
     rdf:value **4,766**; 
     scovo:dataset :ds1; 
     **scovo:dimension :Drugoffences;** 
     scovo:dimension :Essex;  
     scovo:dimension :TP2008_09. 
 

SO the instances of this so called CriminalOffenceType class each of them are created with the same name multiple times equal to the number of rows. The problem is I am not sure I understand why and will appreciate any help. Why are we allowerd to use the same name for the instances? And also I think the reason in the schema CriminalOffenceType is of type owl:Class is just for the reason that we prevent CriminalOffenceType to be used both as type and instance. Is that true?

Regards, .

0

There are 0 best solutions below