w3c / ldp-testsuite

(UNMAINTAINED) Tests for Linked Data Platform (LDP)
Other
22 stars 29 forks source link

Don't assume the LDPR primary topic is the same as the LDPR location #195

Closed catch-point closed 10 years ago

catch-point commented 10 years ago

To support indirect containers, the test suite must distinguish between the LDPR primary topic and the LDPR location.

This pull-request adds a getPrimaryTopic method that tries to guess the LDPR primary topic. It uses the ldp:insertedContentRelation for containers and the rdf:type ex:Bug for resources to find the primary topic.