// Parset reads IRI or anonymous individual, which is shortened as "s" in the OWL spec
Parset reads IRI or anonymous individual, which is shortened as "s" in the OWL spec
// Parset reads IRI or anonymous individual which is shortened as " s " in the OWL spec
func Parses(p *parser.Parser, decls store.Decls, prefixes tech.Prefixes) (expr string, argtype ARGTYPE, err error) {
	pos := p.Pos()
	_, expr, _ = p.ScanIgnoreWSAndComment()
	if expr == "_" { 
		argtype = ArgtypeAnonymousIndividual
		return
	}
	p.Unscan()
	expr, err = parsehelper.ParseUnprefixedIRI(p)
	if err == nil {
		argtype = ArgtypeIRI
		return
	}
	p.Unscan()
	var ident *tech.IRI
	ident, err = parsehelper.ParseAndResolveIRI(p, prefixes)
	if err == nil {
		expr = ident.String()
		argtype = ArgtypeIRI
		return
	}
	pos.EnrichErrorMsg(err, "expected IRI or anonymous individual")
	return
}
func Parses ( p * parser . Parser , decls store . Decls , prefixes tech . Prefixes ) ( expr string , argtype ARGTYPE , err error ) { pos := p . Pos ( ) _ , expr , _ = p . ScanIgnoreWSAndComment ( ) if expr == " " { argtype = ArgtypeAnonymousIndividual return } p . Unscan ( ) expr , err = parsehelper . ParseUnprefixedIRI ( p ) if err == nil { argtype = ArgtypeIRI return } p . Unscan ( ) var ident * tech . IRI ident , err = parsehelper . ParseAndResolveIRI ( p , prefixes ) if err == nil { expr = ident . String ( ) argtype = ArgtypeIRI return } pos . EnrichErrorMsg ( err , " " ) return }
Parset reads IRI or anonymous individual, which is shortened as "s" in the OWL spec
Parset reads IRI or anonymous individual which is shortened as " s " in the OWL spec
//todo Is this right?