pipauwel / IFCtoRDF

IFCtoRDF is a set of reusable Java components that allows to parse IFC-SPF files and convert them into RDF graphs.
Other
83 stars 31 forks source link

Support for IFC Alignment #11

Closed jjkaelin closed 5 years ago

jjkaelin commented 5 years ago

Could you clarify the status of the IFCtoRDF conversion with regard to IFC Alignment? I understood Alignment to be part of IFC4x1 (e.g. https://www.roadotl.eu/static/eurotl-ontologies/IFC4x1_Final_doc/index-en.html ). I tested IFCtoRDF-0.2 on IFC Alignment data and it it does not seem to convert Alignment data. If Alignment is not yet supported, do you have plans to support this in the near future? Thanks in advance for you response.

jjkaelin commented 5 years ago

Some additional clarifications: 1) After more review, I see that https://standards.buildingsmart.org/IFC/DEV/IFC4_1/OWL/ (in web page title shown as IFC4x1) does include support for IFC Alignments. 2) The file I am converting with IFCtoRDF has a header line: FILE_SCHEMA(('IFC4X1')). 3) I am attaching the test file used for the conversion. The output file includes no references to Alignment. (To upload I needed to add a .txt extension.)

Am I misunderstanding something or is there a problem with the conversion?

Test-100.ifc.txt

lewismc commented 5 years ago

I'll have a look at this @jjkaelin over the weekend.

pipauwel commented 5 years ago

Hi,

Apologies for a very late reply. This should be fixed with the latest commit: https://github.com/pipauwel/IFCtoRDF/pull/16. It would be great if you could try this with a sample file, @jjkaelinhttps://github.com/jjkaelin. Or maybe share an IfcAlignment file?

We'll include this in the 0.3 release.

Pieter


Van: Lewis John McGibbney notifications@github.com Verzonden: zaterdag 13 april 2019 0:48 Aan: pipauwel/IFCtoRDF CC: Subscribed Onderwerp: Re: [pipauwel/IFCtoRDF] Support for IFC Alignment (#11)

I'll have a look at this @jjkaelinhttps://github.com/jjkaelin over the weekend.

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/pipauwel/IFCtoRDF/issues/11#issuecomment-482745666, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABjr0tzPy1L5pPNAQf_vM9ZmbMfqRKwyks5vgQ0ggaJpZM4caTjo.

jjkaelin commented 5 years ago

Dear Pieter,

I would be happy to have a look at this and to send you some IFC alignment files. I will try and get back to you this week.

Kind regards, Joe Kaelin

On Mon, 20 May 2019 at 15:28, Pieter Pauwels notifications@github.com wrote:

Hi,

Apologies for a very late reply. This should be fixed with the latest commit: https://github.com/pipauwel/IFCtoRDF/pull/16. It would be great if you could try this with a sample file, @jjkaelin< https://github.com/jjkaelin>. Or maybe share an IfcAlignment file?

We'll include this in the 0.3 release.

Pieter


Van: Lewis John McGibbney notifications@github.com Verzonden: zaterdag 13 april 2019 0:48 Aan: pipauwel/IFCtoRDF CC: Subscribed Onderwerp: Re: [pipauwel/IFCtoRDF] Support for IFC Alignment (#11)

I'll have a look at this @jjkaelinhttps://github.com/jjkaelin over the weekend.

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub< https://github.com/pipauwel/IFCtoRDF/issues/11#issuecomment-482745666>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ABjr0tzPy1L5pPNAQf_vM9ZmbMfqRKwyks5vgQ0ggaJpZM4caTjo

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pipauwel/IFCtoRDF/issues/11?email_source=notifications&email_token=AFTDZESVMQTUP6MNQSJRCUTPWKRRVA5CNFSM4HDJHDUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVY2NEY#issuecomment-493987475, or mute the thread https://github.com/notifications/unsubscribe-auth/AFTDZET22FTKWEK2A3LSRTDPWKRRVANCNFSM4HDJHDUA .

jjkaelin commented 5 years ago

I built the 'issue11' branch and tested three IFC Alignment datafiles (see below at end):

diff MainRoad_as_is_designed_1.1.rdf  ../../IFCtoRDF-IFCtoRDF-0.2/target/MainRoad_as_is_designed_1.1.ttl 

1,2c1,2 < # baseURI: http://linkedbuildingdata.net/ifc/resources20190526_094206/ < # imports: http://standards.buildingsmart.org/IFC/DEV/IFC4/ADD1/OWL

baseURI: http://linkedbuildingdata.net/ifc/resources20190412_181310/

imports: http://www.buildingsmart-tech.org/ifcOWL/IFC4_ADD1

The output file imports IFC ADD1 OWL. This seems to me strange, as the referenced FILE_SCHEMA is IFC4X1 (I tried changing the import file reference to IFC4x1 but see in the codebase that this is anyway read case-insensitive). Is this relevant?

grep -i IFC4 horizontal-alignment.rdf

imports: http://standards.buildingsmart.org/IFC/DEV/IFC4/ADD1/OWL

grep -i IFC4 horizontal-alignment.ifc FILE_DESCRIPTION(('IFC4X1'),'2;1'); FILE_SCHEMA(('IFC4x1'));

The test datafiles that I use are:

horizontal-alignment.ifc http://www.buildingsmart-tech.org/ifc/IFC4x1/final/html/annex/annex-e/horizontal-alignment.ifc

MainRoad_as_is_designed_1.1.ifc
http://www.modelservers.org/public/V-Con/ReleaseP3/DataSets/SE/Alignment/

civil3d_test_100m_stationing.ifc my own test

Now that I have been through the build process, I can easily do more testing and am happy to do this. I am quite interested in exploring IFCtoRDF with alignment data.

horizontal-alignment.rdf.txt civil3d_test_100m_stationing.rdf.txt MainRoad_as_is_designed_1.1.rdf.txt

pipauwel commented 5 years ago

Hi @jjkaelin, I just tested this with the sample files. Indeed, the wrong ontology was selected for parsing the file. It should be fine now in the ISSUE-11 branch. Maybe you can double-check whether the output Alignment.ttl files are really complete? Pieter