This is the query I am running to get these details of All programming languages.Every programming language has some influenced other languages or influenced by other language. So there may be many languages in influenced or influenced by. Now the prob is when it is printing all the values of it prints every values separately in rows. You can look into the picture. I want all its influenced or influencedBy programming languages in a single row. Query is below.
SELECT ?pl ?abstract ?influenced ?influencedBy
WHERE {
?pl dbo:abstract ?abstract .
?pl dbo:influenced ?influenced .
?pl dbo:influencedBy ?influencedBy .
?pl rdf:type dbo:ProgrammingLanguage .
FILTER (LANG(?abstract) = 'en') .
}
Screen shot of my result
You can see that This language has two influencedBy values and it is printing them in separate rows.
Website data example
As @AKSW said, something like --
Edit to Add
To get the
?pl_label
(and I'm guessing, the?_influenced_label
and?_influencedBy_label
) you now say you want, you will need (and/or want) to tweak things a bit...