Querying knowledge graphs with extended property paths