/**
  * 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];
     }
 }
 /**
  * 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);
     }
 }
 /**
  * create tag
  */
 function create(&$model, $name, $attributes, $base)
 {
     OWLTag::create($model, $name, $attributes, $base);
     //echoN("ZZ:".$attributes[$this->RDF_ID]);
     if (array_key_exists($this->RDF_ID, $attributes)) {
         $this->id = $model->getNamespace() . $attributes[$this->RDF_ID];
     }
     $this->class_id = preg_replace("/#:/", "#", $name);
     //echoN("XX:".$this->class_id);
     $this->properties = array();
 }
 /**
  * create tag
  */
 function create(&$model, $name, $attributes, $base)
 {
     OWLTag::create($model, $name, $attributes, $base);
     if (array_key_exists($this->RDF_ID, $attributes)) {
         $this->id = $model->getNamespace() . $attributes[$this->RDF_ID];
         $this->cls = $model->createClass($this->id);
     } else {
         if (array_key_exists($this->RDF_ABOUT, $attributes)) {
             $this->id = $this->addBaseToURI($attributes[$this->RDF_ABOUT]);
             $this->cls = $model->createClass($this->id);
         }
     }
 }
 /**
  * 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
  */
 function create(&$model, $name, $attributes, $base)
 {
     OWLTag::create($model, $name, $attributes, $base);
     $this->should_add = false;
     if (array_key_exists($this->RDF_ID, $attributes)) {
         $this->id = $model->getNamespace() . $attributes[$this->RDF_ID];
         $this->should_add = true;
     } else {
         if (array_key_exists($this->RDF_ABOUT, $attributes)) {
             $this->id = $this->addBaseToURI($attributes[$this->RDF_ABOUT]);
         }
     }
     $this->domain = array();
     $this->range = array();
     if ($name == $this->OWL_DATATYPEPROPERTY) {
         $this->is_datatype = true;
     } else {
         $this->is_datatype = false;
     }
 }
 /**
  * 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;
 }