public function extractCardinality(string $id)
    {
        foreach ($this->relations as $relation) {
            $result = $relation->xpath(sprintf('//*[@rdf:about="%s"]/rdfs:label', $this->getPropertyUrl($id)));
            if (count($result)) {
                preg_match('/\(.\.\..\)/', $result[0]->asXML(), $matches);

                return $matches[0];
            }
        }

        return false;
    }
public function extractCardinality(string $id)
    {
        foreach ($this->relations as $relation) {
            $result = $relation->xpath(sprintf('//*[@rdf:about="%s"]/rdfs:label', $this->getPropertyUrl($id)));
            if (count($result)) {
                preg_match('/\(.\.\..\)/', $result[0]->asXML(), $matches);

                return $matches[0];
            }
        }

        return false;
    }
public function extractCardinality ( string $ id ) { foreach ( $ this -> relations as $ relation ) { $ result = $ relation -> xpath ( sprintf ( '//*[@rdf:about="%s"]/rdfs:label' , $ this -> getPropertyUrl ( $ id ) ) ) ; if ( count ( $ result ) ) { preg_match ( '/\(.\.\..\)/' , $ result [ 0 ] -> asXML ( ) , $ matches ) ; return $ matches [ 0 ] ; } } return false ; }
Extracts cardinality from the Good Relations OWL.

@return string|bool
Extracts cardinality from the Good Relations OWL .