Example #1
0
 /**
  * Update the declaration "todo" and "done" lists for the case that the
  * given data has been serialized with the type information it provides.
  *  
  * @param $expData specifying the type data upon which declarations are based
  */
 protected function recordDeclarationTypes(SMWExpData $expData)
 {
     foreach ($expData->getSpecialValues('rdf', 'type') as $typeresource) {
         if ($typeresource instanceof SMWExpNsResource) {
             switch ($typeresource->getQName()) {
                 case 'owl:Class':
                     $typeflag = SMW_SERIALIZER_DECL_CLASS;
                     break;
                 case 'owl:ObjectProperty':
                     $typeflag = SMW_SERIALIZER_DECL_OPROP;
                     break;
                 case 'owl:DatatypeProperty':
                     $typeflag = SMW_SERIALIZER_DECL_APROP;
                     break;
                 default:
                     $typeflag = 0;
             }
             if ($typeflag != 0) {
                 $this->declarationDone($expData->getSubject(), $typeflag);
             }
         }
     }
 }