/**
  * end tag
  */
 function endTag($parser, $tag)
 {
     OWLTag::endTag($parser, $tag);
     if (!$this->wantsMore() && $this->should_add) {
         $this->model->createProperty($this->id, $this->domain, $this->range, $this->is_datatype);
     }
 }
 /**
  * create tag
  */
 function create(&$model, $name, $attributes, $base)
 {
     OWLTag::create($model, $name, $attributes, $base);
     if (array_key_exists($this->RDF_RESOURCE, $attributes)) {
         $this->id = $this->addBaseToURI($attributes[$this->RDF_RESOURCE]);
     }
 }
 /**
  * create tag
  */
 function create(&$model, $name, $attributes, $base)
 {
     OWLTag::create($model, $name, $attributes, $base);
     $this->language = "en";
     if (array_key_exists($this->XML_LANG, $attributes)) {
         $this->language = $attributes[$this->XML_LANG];
     }
 }
 /**
  * end tag
  */
 function endTag($parser, $tag)
 {
     OWLTag::endTag($parser, $tag);
     //echoN("ENDTAG1:$tag");
     if (!$this->wantsMore()) {
         //echoN("ENDTAG2");
         $this->model->addProperty($this->id, $this->properties, "CLASS");
     }
 }
 /**
  * create tag
  */
 function create(&$model, $name, $attributes, $base)
 {
     OWLTag::create($model, $name, $attributes, $base);
     $this->resources = array();
     if (array_key_exists($this->RDF_RESOURCE, $attributes)) {
         $id = $this->addBaseToURI($attributes[$this->RDF_RESOURCE]);
         array_push($this->resources, $id);
     }
 }
 /**
  * end tag
  */
 function endTag($parser, $tag)
 {
     OWLTag::endTag($parser, $tag);
     if (!$this->wantsMore()) {
         //echoN("$this->id, $this->class_id,");
         //preprint_r($this->properties);
         //echoN("INSTANCE_END_TAG");
         //preprint_r($this->properties);
         $this->model->addInstance($this->id, $this->class_id, $this->properties);
     }
 }
 /**
  * create tag
  */
 function create(&$model, $name, $attributes, $base)
 {
     OWLTag::create($model, $name, $attributes, $base);
     $this->resources = array();
     if (array_key_exists($this->RDF_RESOURCE, $attributes)) {
         $id = $this->addBaseToURI($attributes[$this->RDF_RESOURCE]);
         //echoN("HERE:$id");
         array_push($this->resources, $id);
     }
     /// ADDED BY KARIM
     unset($attributes[$this->RDF_RESOURCE]);
     array_push($this->resources, $attributes);
     //echoN("HERE2:".print_r($attributes,true));
     //echoN("PROCESSING $name");
     //preprint_r($this->resources);
 }
 /**
  * create tag class
  */
 function createTag($tag, $attributes, $base)
 {
     $obj = null;
     $uri = preg_replace("/#:/", "#", $tag);
     $namespace = substr($tag, 0, strpos($tag, "#:"));
     $conceptName = $attributes['http://www.w3.org/1999/02/22-rdf-syntax-ns#:ID'];
     /*	if ( mb_strpos($conceptName, "عيسى")!==false)
       	{
     
       		echoN("####".$conceptName);
       		
       		
       	}
       	echoN("YY:$uri");
       	echoN("TTT:$tag");
       	echoN("BASE:$base");
       	echoN("NS:$namespace");
       	//preprint_r($attributes);
       	 * 
       	 */
     if (array_key_exists($tag, $this->tag_classes)) {
         //echoN("111:$tag");
         $obj = new $this->tag_classes[$tag]();
     } else {
         if (array_key_exists($namespace, $this->tag_classes)) {
             //echoN("111-2:$namespace");
             $obj = new $this->tag_classes[$namespace]();
         } else {
             if ($this->model->getClass($uri) != null) {
                 //echoN("222");
                 $obj = new OWLInstanceTag();
             } else {
                 if ($this->model->getProperty($uri) != null) {
                     //echoN("333");
                     $obj = new OWLPropInstanceTag();
                 } else {
                     //echoN("444");
                     $obj = new OWLTag();
                 }
             }
         }
     }
     $obj->create($this->model, $tag, $attributes, $base);
     return $obj;
 }