@prefix ifc_mvdname: <http://www.modelviewdefinitions.net/pieterpauwels/20130808/convertedmodel#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix model:   <http://dsg.cs.hut.fi/model/> .
@prefix olo:     <http://purl.org/ontology/olo/core#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ifc:     <http://dsg.cs.hut.fi/schema/IFC2X3#> .
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#> .


# simple example that allows to select objects with direct reference to the names of the owners who created these objects (no ifcownerhistory)
{
	 ?x ifc:ownerHistory ?y .
	 ?y ifc:owningUser ?owninguser .
	 ?owninguser ifc:thePerson ?person .
	 ?person ifc:familyName ?fn .
	 ?person ifc:givenName ?gn .
}
=>
{
	  ?x ifc_mvdname:owner ?z .
	  ?z a ifc_mvdname:Person .
	  ?z ifc_mvdname:familyName ?fn .
	  ?z ifc_mvdname:givenName ?gn
} .