How to set Labels in Ratel UI

(Paul Korzhyk) #41
name: myOtherStringProperty

to set node label should work in your case, I’m surprised it doesn’t and cannot think of a good reason why. Some random things to check:

  • Do you see values for “name” when you click “</>JSON” tab in the right pane?
  • Does “name” start with lots of whitespace characters?
  • Can you give me a sample value for “I22rdfsyntaxnstype” so I could investigate further?

Just verified that it works as expected on play:

(Ami Pandat) #42



I have attached my schema file and dataset [subset of dataset as my data set is very large to upload].
subset-rdf.rdf (34.1 KB)
Rdf_lodSchema.schema (487 Bytes)


(Ami Pandat) #43

Today I got one node with label… But I don’t know what happened in this query that it is displaying node with label.
Then I have run this query which is not showing label.

Can you explain me what is happening in these queries?

(Michel Conrado) #44

Hey, @paulftw is offline but He warned me about a limitation He had to add in Ratel. We hide the labels if the nodes are above 50 due performance in Browsers.

So you can do something like:

 yourquery (func: has(some), first:30) {

(Ami Pandat) #45

Okay by using this I can see first 30 resultant nodes…right?

(Michel Conrado) #46

Yeah, check docs for more

(Ami Pandat) #47

Okay and what is the reason for edge…why there is not a single edge creating?

(Michel Conrado) #48

Sorry I didn’t get it.

(Ami Pandat) #49

When I mention some predicate in query, all outgoing edges from that predicate should be displayed right?
but there is no edge returning in my query.

(Michel Conrado) #50

If isn’t being displayed is because it doesn’t have it. There’s no other reason. Check your RDF, and use
uid expand(_all_){uid expand(_all_)}” in your query.

(Ami Pandat) #51

My RDF is in valid format.
But I have read that edge creates only between two nodes not value.
But my RDF data is in this format
<Subjects> <Pred> “Object” .
So If I want to connect Subject and Object via an edge then it is not possible… right?

(Michel Conrado) #52

To connect two nodes, you need to connect them using an edge and their UID’s. Creating the relation.

<0x01> <friend> <0x02> .

0x01 is a node => connects to => 0x02 (via friend);

See also

(Ami Pandat) #53

Yes my RDF data was in this same format but it was showing an error of scalar uid while I was trying to load it via live loader Then I have changed it

< Subject> <Pred> “obj”.

Then it was successfully loaded by live loader but there is no edge in between.
I have attached new and old dataset.

Old_subset.rdf.odt (56.7 KB)
New_subset.rdf (34.1 KB)

(Michel Conrado) #54

between what? your New_subset.rdf hasn’t edges between nothing else.

This is an edge between something:

<0x01> <friend> <0x02> .

This isn’t an edge between something:

< Subject> <Pred> “obj”.

Check this image:

(Ami Pandat) #55

But When I try to set <Subject> <Predicate> <Object> in my dataset[old Dataset]…Live loader shows an error of scalar uid.

(Michel Conrado) #56

This happens because you certainly had defined that a given predicate has a specific Type other than UID Type. So every time you try to write a mutation with a predicate that is set for example to String / Int / Bool it will give this error. On otherwise, you have defined that predicate as UID Type, but it is sending a String. Check your RDF and Schema.

(system) closed #57

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.