// parseObjectPropertyAssertion parses a single ObjectPropertyAssertion(...) expression, including braces.
parseObjectPropertyAssertion parses a single ObjectPropertyAssertion(...) expression, including braces.
// parseObjectPropertyAssertion parses a single ObjectPropertyAssertion ( ... ) expression including braces .
func (s *Ontology) parseObjectPropertyAssertion(p *parser.Parser) (err error) {
	if err = p.ConsumeTokens(parser.ObjectPropertyAssertion, parser.B1); err != nil {
		return
	}
	pos := p.Pos()
	var ident *tech.IRI
	ident, err = parsehelper.ParseAndResolveIRI(p, s)
	if err != nil {
		err = pos.Errorf("parsing IRI in ObjectPropertyAssertion: %v", err)
		return
	}
	var a1 individual.Individual
	a1, err = parsefuncs.ParseIndividual(p, s.Decls, s)
	if err != nil {
		err = pos.Errorf("parsing first individual in ObjectPropertyAssertion: %v", err)
		return
	}
	var a2 individual.Individual
	a2, err = parsefuncs.ParseIndividual(p, s.Decls, s)
	if err != nil {
		err = pos.Errorf("parsing second individual in ObjectPropertyAssertion: %v", err)
		return
	}
	if err = p.ConsumeTokens(parser.B2); err != nil {
		return
	}
	s.AxiomStore.StoreObjectPropertyAssertion(ident.String(), a1, a2)
	return
}
func ( s * Ontology ) parseObjectPropertyAssertion ( p * parser . Parser ) ( err error ) { if err = p . ConsumeTokens ( parser . ObjectPropertyAssertion , parser . B1 ) ; err != nil { return } pos := p . Pos ( ) var ident * tech . IRI ident , err = parsehelper . ParseAndResolveIRI ( p , s ) if err != nil { err = pos . Errorf ( " " , err ) return } var a1 individual . Individual a1 , err = parsefuncs . ParseIndividual ( p , s . Decls , s ) if err != nil { err = pos . Errorf ( " " , err ) return } var a2 individual . Individual a2 , err = parsefuncs . ParseIndividual ( p , s . Decls , s ) if err != nil { err = pos . Errorf ( " " , err ) return } if err = p . ConsumeTokens ( parser . B2 ) ; err != nil { return } s . AxiomStore . StoreObjectPropertyAssertion ( ident . String ( ) , a1 , a2 ) return }
parseObjectPropertyAssertion parses a single ObjectPropertyAssertion(...) expression, including braces.
parseObjectPropertyAssertion parses a single ObjectPropertyAssertion ( ... ) expression including braces .