IFC model perspectives +++++++++++++++++++++++ Pieter Pauwels 8 August 2013 --------- - Files - --------- > originalmodel.n3 We are using the RDF file that can be found on http://linkedbuildingdata.net/tools/tool-ifc-to-rdf-conversion-tool/ and that follows the first ontology (OWL DL1). > originalmodel.rdf This is the same RDF model, but converted into RDF/XML notation (using RDF translator: rdf-translator.appspot.com). > conversionrules.n3 These are the rules that allow to generate an alternative perspective on (a part of) the IFC model, a kind of simple and custom model view definition (MVD). > query.n3 The query file is exactly the same as the conversionrules.n3 file. Using this file as a query file, the EYE reasoning engine is able to retrieve only the elements that are represented by the query file (see procedure below). ------------- - Procedure - ------------- + Doing the conversion +++++++++++++++++++++++ 1. Install EYE: see http://eulersharp.sourceforge.net/INSTALL 2. Test run EYE and see that everything is installed correctly 3. See all possible EYE commands on http://eulersharp.sourceforge.net/README 4. open command line 5. run "eye --nope originalmodel.n3 conversionrules.n3 --pass > output.n3" 6. see additional RDF statements at the end of the output.n3 file + Edit rules ++++++++++++ 1. open up conversionrules.n3 in any notepad application 2. start editing + Query conversion rules ++++++++++++++++++++++++ 1. Install EYE: see http://eulersharp.sourceforge.net/INSTALL 2. Test run EYE and see that everything is installed correctly 3. See all possible EYE commands on http://eulersharp.sourceforge.net/README 4. open command line 5. run "eye --nope originalmodel.n3 conversionrules.n3 --query query.n3 > queryoutput.n3" 6. find the retrieved RDF statements in the queryoutput.n3 file