Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic example of how to use it? #1

Open
MartinOrdinateur opened this issue Apr 7, 2014 · 1 comment
Open

Basic example of how to use it? #1

MartinOrdinateur opened this issue Apr 7, 2014 · 1 comment

Comments

@MartinOrdinateur
Copy link

Hiya, this might sound like a stupid question, but I'm still getting my bearings in the BIMServer project. I noticed that BimQL is a part (plugin) of this and the basic principle sounds very promising.

However, one thing I can't seem to figure out, is how to use it... -_-
What I've been trying to do so far, is setting up a BIMClient, connecting it to the server and somehow coerce something resembling a BimQL instance to actually query data.
But so far I have two questions:

  1. is it possible to use a basic BIMClient for this?
  2. Can you give a step by step example of how to execute a BIM Query using the BIMQL plugin?

Thanks in advance.

@MartinOrdinateur
Copy link
Author

Ok.. So meanwhile in a stroke of luck, I found this code: https://code.google.com/p/bimserver/source/browse/trunk/Tests/src/org/bimserver/tests/TestBimQlSoap.java which gives me a basic idea of how to communicate with the server, using BimQL.

Running from the BIMServer test-suite the test placing walls (Test 2: Create 10 walls, delete 1) It gives me a managable dataset to test queries on.. So far, I got the following conclusions:

Going on the examples on http://bimql.org/select/:
"Select $Var1 Where $Var1.Attribute.GlobalId = wall7"
"Select $Var1 Where $Var1.EntityType = IfcWall"
"Select $Var1"

all work. But expanding on that and for example the following variations:
"Select $Var1 Where $Var1.Attribute.Name = 'wall 7'"
"Select $Var1 Where $Var1.Attribute.Oid = 590572"
don't really do anything. (return empty sets..)

Is there any formal description of how the BimQL works? Or perhaps what information is stored where in '$Var1' so I can query it?

Thanks in advance.

Kind regards,
Martin Stam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant