I'm wondering how to define a locally closed subscheme formally. My attempt is to define it as a morphism $f:X\rightarrow Y$ which can factor as $f = g\circ i$ where $g$ is an open immersion and $i$ closed immersion.
My question:
Is the factorization $f = g\circ i$ unique in some sense? Could it be described by ideal sheaf?
For any given locally closed subset, is there a unique reduced scheme structure making it as a locally closed subscheme?
Is quasiprojective scheme locally closed subscheme? If it is, when we say $X$ is a quasiprojective scheme, is the immersion $f$ part of data of $X$ or we only need $X$ can be immerse into some $\mathbb P^n$?
In Hartshorne, quasiprojective morphism is defined as a morphism $f:X\rightarrow Y$ is quasiprojective if it factors into an open immersion $j:X'\rightarrow X$ followed by a projective morphism $g:X'\rightarrow Y$. The order of composition is different from that in immersion.
In some other place, quasiprojective variety might be even defined as: a quasiprojective variety is a open subset of a projective variety. For which I don't know if projective variety is part of data.