From: Richard C. <ri...@cy...> - 2006-06-17 15:44:06
|
On 17 Jun 2006, at 14:55, Roberto SL wrote: > 2. I have noticed that beside the GENERAL_PREFIX_BASE variable > there is > a number which derives from . $this->m_nextAutomaticPrefixIndex > specified in the RdfSerializer.php . > > Why there is that number When RAP serializes an RDF model to RDF/XML, it needs namespace declarations for all RDF properties that are used in the model. If there are no declarations for some properties, then RAP makes up its own declarations and uses prefixes like ns0, ns1 and so on. There can be any number of different namespaces in any RDF model, and so RAP needs to number them because each needs its unique prefix. By the way, you can declare your own namespaces using $model- >addNamespace($prefix, $uri). > and is it possible to disable it? Well, just hack the code. But why would you want to do that? Best, Richard > > Thanks again, > > RSL > > > > > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |